Index: third_party/WebKit/Source/bindings/core/v8/ScriptState.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptState.h b/third_party/WebKit/Source/bindings/core/v8/ScriptState.h |
index 58d48a95e76a71605454f6145ac56731c29057e6..b5555e2ea2f19adcb5cd565d6651efc94f73045b 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptState.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptState.h |
@@ -9,7 +9,6 @@ |
#include "bindings/core/v8/V8PerContextData.h" |
#include "core/CoreExport.h" |
#include "wtf/RefCounted.h" |
-#include <memory> |
#include <v8-debug.h> |
#include <v8.h> |
@@ -116,11 +115,11 @@ private: |
// This RefPtr doesn't cause a cycle because all persistent handles that DOMWrapperWorld holds are weak. |
RefPtr<DOMWrapperWorld> m_world; |
- // This std::unique_ptr causes a cycle: |
- // V8PerContextData --(Persistent)--> v8::Context --(RefPtr)--> ScriptState --(std::unique_ptr)--> V8PerContextData |
- // So you must explicitly clear the std::unique_ptr by calling disposePerContextData() |
+ // This OwnPtr causes a cycle: |
+ // V8PerContextData --(Persistent)--> v8::Context --(RefPtr)--> ScriptState --(OwnPtr)--> V8PerContextData |
+ // So you must explicitly clear the OwnPtr by calling disposePerContextData() |
// once you no longer need V8PerContextData. Otherwise, the v8::Context will leak. |
- std::unique_ptr<V8PerContextData> m_perContextData; |
+ OwnPtr<V8PerContextData> m_perContextData; |
#if ENABLE(ASSERT) |
bool m_globalObjectDetached; |