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); |