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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/DOMDataStore.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/bindings/core/v8/DOMDataStore.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h b/third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h
index 079812501ac1421d17d7f9052c235393f55980b6..23eab6aece2b47f0c5c354b4555bc5163a8fc10a 100644
--- a/third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h
+++ b/third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h
@@ -37,8 +37,9 @@
#include "bindings/core/v8/WrapperTypeInfo.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
-#include "wtf/OwnPtr.h"
+#include "wtf/PtrUtil.h"
#include "wtf/StdLibExtras.h"
+#include <memory>
#include <v8.h>
namespace blink {
@@ -52,7 +53,7 @@ public:
DOMDataStore(v8::Isolate* isolate, bool isMainWorld)
: m_isMainWorld(isMainWorld)
// We never use |m_wrapperMap| when it's the main world.
- , m_wrapperMap(adoptPtr(
+ , m_wrapperMap(wrapUnique(
isMainWorld
? nullptr
: new DOMWrapperMap<ScriptWrappable>(isolate))) { }
@@ -216,7 +217,7 @@ private:
}
bool m_isMainWorld;
- OwnPtr<DOMWrapperMap<ScriptWrappable>> m_wrapperMap;
+ std::unique_ptr<DOMWrapperMap<ScriptWrappable>> m_wrapperMap;
};
template<>

Powered by Google App Engine
This is Rietveld 408576698