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

Unified Diff: third_party/WebKit/Source/modules/storage/StorageNamespace.h

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/StorageNamespace.h
diff --git a/third_party/WebKit/Source/modules/storage/StorageNamespace.h b/third_party/WebKit/Source/modules/storage/StorageNamespace.h
index 1161c6ec0cb5d5e492538a997b8a46e8c28eb659..48565baedd05575b428c355266582e208f0d2c67 100644
--- a/third_party/WebKit/Source/modules/storage/StorageNamespace.h
+++ b/third_party/WebKit/Source/modules/storage/StorageNamespace.h
@@ -28,8 +28,7 @@
#include "modules/ModulesExport.h"
#include "platform/heap/Handle.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
+#include <memory>
namespace blink {
@@ -40,7 +39,7 @@ class StorageArea;
class MODULES_EXPORT StorageNamespace {
USING_FAST_MALLOC(StorageNamespace);
public:
- explicit StorageNamespace(PassOwnPtr<WebStorageNamespace>);
+ explicit StorageNamespace(std::unique_ptr<WebStorageNamespace>);
~StorageNamespace();
static StorageArea* localStorageArea(SecurityOrigin*);
@@ -49,7 +48,7 @@ public:
bool isSameNamespace(const WebStorageNamespace& sessionNamespace) const;
private:
- OwnPtr<WebStorageNamespace> m_webStorageNamespace;
+ std::unique_ptr<WebStorageNamespace> m_webStorageNamespace;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698