Index: third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp |
diff --git a/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp b/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp |
index 3a0a9554f38c4baded7dc645f9366eeba5a6d7a1..9a3dabcbff7b81727e33907ca7147941bd8686e8 100644 |
--- a/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp |
+++ b/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp |
@@ -11,6 +11,8 @@ |
#include "platform/UserGestureIndicator.h" |
#include "public/platform/WebVector.h" |
#include "public/web/WebScriptExecutionCallback.h" |
+#include "wtf/PtrUtil.h" |
+#include <memory> |
namespace blink { |
@@ -65,9 +67,9 @@ void SuspendableScriptExecutor::executeAndDestroySelf() |
{ |
// after calling the destructor of object - object will be unsubscribed from |
// resumed and contextDestroyed LifecycleObserver methods |
- OwnPtr<UserGestureIndicator> indicator; |
+ std::unique_ptr<UserGestureIndicator> indicator; |
if (m_userGesture) |
- indicator = adoptPtr(new UserGestureIndicator(DefinitelyProcessingNewUserGesture)); |
+ indicator = wrapUnique(new UserGestureIndicator(DefinitelyProcessingNewUserGesture)); |
v8::HandleScope scope(v8::Isolate::GetCurrent()); |
Vector<v8::Local<v8::Value>> results; |