Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: third_party/WebKit/Source/core/frame/SuspendableScriptExecutor.cpp

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/SuspendableScriptExecutor.cpp
diff --git a/third_party/WebKit/Source/core/frame/SuspendableScriptExecutor.cpp b/third_party/WebKit/Source/core/frame/SuspendableScriptExecutor.cpp
index 4d8de1121c562fe4cd0f71e4238b6e27587a48c3..e9c9474c9b2f12d2203db26cfbc6954311032ec3 100644
--- a/third_party/WebKit/Source/core/frame/SuspendableScriptExecutor.cpp
+++ b/third_party/WebKit/Source/core/frame/SuspendableScriptExecutor.cpp
@@ -114,7 +114,7 @@ Vector<v8::Local<v8::Value>> V8FunctionExecutor::Execute(LocalFrame* frame) {
std::unique_ptr<UserGestureIndicator> gesture_indicator;
if (gesture_token_) {
gesture_indicator =
- WTF::WrapUnique(new UserGestureIndicator(gesture_token_.Release()));
+ WTF::WrapUnique(new UserGestureIndicator(std::move(gesture_token_)));
}
if (V8ScriptRunner::CallFunction(function_.NewLocal(isolate),
frame->GetDocument(),
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMTypedArray.h ('k') | third_party/WebKit/Source/core/frame/WebFrameWidgetBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698