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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.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/V8HiddenValue.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.h b/third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.h
index b9bb81f441f910ea5e19083b962dd4a801bfa36e..d86fa3a8a273901ac34d9940bdd5eb5cb5cf2a0e 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.h
@@ -9,7 +9,8 @@
#include "bindings/core/v8/ScriptPromiseProperties.h"
#include "core/CoreExport.h"
#include "wtf/Allocator.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
#include <v8.h>
namespace blink {
@@ -61,7 +62,7 @@ class CORE_EXPORT V8HiddenValue {
USING_FAST_MALLOC(V8HiddenValue);
WTF_MAKE_NONCOPYABLE(V8HiddenValue);
public:
- static PassOwnPtr<V8HiddenValue> create() { return adoptPtr(new V8HiddenValue()); }
+ static std::unique_ptr<V8HiddenValue> create() { return wrapUnique(new V8HiddenValue()); }
#define V8_DECLARE_METHOD(name) static v8::Local<v8::String> name(v8::Isolate* isolate);
V8_HIDDEN_VALUES(V8_DECLARE_METHOD);

Powered by Google App Engine
This is Rietveld 408576698