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