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