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

Unified Diff: third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp

Issue 2401123002: UserGestureIndicator is a mess. Clean it up. (Closed)
Patch Set: Callback cleanup, comments Created 4 years, 2 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/web/SuspendableScriptExecutor.cpp
diff --git a/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp b/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp
index 8beacb12bd47c2fb683b944c573bd2177ad8ace9..9f0988fd292007d4f318a7ad2606bb40572dd310 100644
--- a/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp
+++ b/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp
@@ -54,8 +54,8 @@ WebScriptExecutor::WebScriptExecutor(
Vector<v8::Local<v8::Value>> WebScriptExecutor::execute(LocalFrame* frame) {
std::unique_ptr<UserGestureIndicator> indicator;
if (m_userGesture) {
- indicator = wrapUnique(
- new UserGestureIndicator(DefinitelyProcessingNewUserGesture));
+ indicator = wrapUnique(new UserGestureIndicator(
+ UserGestureToken::create(UserGestureToken::NewGesture)));
}
Vector<v8::Local<v8::Value>> results;
« no previous file with comments | « third_party/WebKit/Source/platform/UserGestureIndicatorTest.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698