Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Unified Diff: third_party/WebKit/Source/modules/storage/StorageArea.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/storage/StorageArea.cpp
diff --git a/third_party/WebKit/Source/modules/storage/StorageArea.cpp b/third_party/WebKit/Source/modules/storage/StorageArea.cpp
index ca5f398fb0d79fdef7a568193c1cd1b3b75d3c96..7447f5bdaff1dcc128d43376b28cc4ec3a627301 100644
--- a/third_party/WebKit/Source/modules/storage/StorageArea.cpp
+++ b/third_party/WebKit/Source/modules/storage/StorageArea.cpp
@@ -43,15 +43,16 @@
#include "public/platform/WebStorageArea.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
+#include <memory>
namespace blink {
-StorageArea* StorageArea::create(PassOwnPtr<WebStorageArea> storageArea, StorageType storageType)
+StorageArea* StorageArea::create(std::unique_ptr<WebStorageArea> storageArea, StorageType storageType)
{
return new StorageArea(std::move(storageArea), storageType);
}
-StorageArea::StorageArea(PassOwnPtr<WebStorageArea> storageArea, StorageType storageType)
+StorageArea::StorageArea(std::unique_ptr<WebStorageArea> storageArea, StorageType storageType)
: LocalFrameLifecycleObserver(nullptr)
, m_storageArea(std::move(storageArea))
, m_storageType(storageType)
@@ -209,7 +210,7 @@ bool StorageArea::isEventSource(Storage* storage, WebStorageArea* sourceAreaInst
{
ASSERT(storage);
StorageArea* area = storage->area();
- return area->m_storageArea == sourceAreaInstance;
+ return area->m_storageArea.get() == sourceAreaInstance;
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/storage/StorageArea.h ('k') | third_party/WebKit/Source/modules/storage/StorageClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698