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

Unified Diff: third_party/WebKit/Source/core/inspector/DevToolsHost.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/core/inspector/DevToolsHost.cpp
diff --git a/third_party/WebKit/Source/core/inspector/DevToolsHost.cpp b/third_party/WebKit/Source/core/inspector/DevToolsHost.cpp
index ffb00b281a08054c21b56d010e286c6c6fc5c78d..c4a73f06836672638b2a4198786a1c5ce55b40ce 100644
--- a/third_party/WebKit/Source/core/inspector/DevToolsHost.cpp
+++ b/third_party/WebKit/Source/core/inspector/DevToolsHost.cpp
@@ -132,7 +132,7 @@ void DevToolsHost::evaluateScript(const String& expression) {
if (!scriptState)
return;
ScriptState::Scope scope(scriptState);
- UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture);
+ UserGestureIndicator gestureIndicator(UserGestureToken::create());
v8::MicrotasksScope microtasks(scriptState->isolate(),
v8::MicrotasksScope::kRunMicrotasks);
v8::Local<v8::String> source =

Powered by Google App Engine
This is Rietveld 408576698