summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/quota/DOMWindowQuota.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/Modules/quota/DOMWindowQuota.cpp')
-rw-r--r--Source/WebCore/Modules/quota/DOMWindowQuota.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/Modules/quota/DOMWindowQuota.cpp b/Source/WebCore/Modules/quota/DOMWindowQuota.cpp
index ea3d65938..ec7a1b12e 100644
--- a/Source/WebCore/Modules/quota/DOMWindowQuota.cpp
+++ b/Source/WebCore/Modules/quota/DOMWindowQuota.cpp
@@ -37,7 +37,6 @@
#include "Document.h"
#include "Frame.h"
#include "StorageInfo.h"
-#include <wtf/PassRefPtr.h>
namespace WebCore {
@@ -60,8 +59,9 @@ DOMWindowQuota* DOMWindowQuota::from(DOMWindow* window)
{
DOMWindowQuota* supplement = static_cast<DOMWindowQuota*>(Supplement<DOMWindow>::from(window, supplementName()));
if (!supplement) {
- supplement = new DOMWindowQuota(window);
- provideTo(window, supplementName(), adoptPtr(supplement));
+ auto newSupplement = std::make_unique<DOMWindowQuota>(window);
+ supplement = newSupplement.get();
+ provideTo(window, supplementName(), WTFMove(newSupplement));
}
return supplement;
}
@@ -75,7 +75,7 @@ StorageInfo* DOMWindowQuota::webkitStorageInfo(DOMWindow* window)
StorageInfo* DOMWindowQuota::webkitStorageInfo() const
{
if (!m_storageInfo && frame()) {
- frame()->document()->addConsoleMessage(JSMessageSource, WarningMessageLevel, "window.webkitStorageInfo is deprecated. Use navigator.webkitTemporaryStorage or navigator.webkitPersistentStorage instead.");
+ frame()->document()->addConsoleMessage(MessageSource::JS, MessageLevel::Warning, ASCIILiteral("window.webkitStorageInfo is deprecated. Use navigator.webkitTemporaryStorage or navigator.webkitPersistentStorage instead."));
m_storageInfo = StorageInfo::create();
}
return m_storageInfo.get();