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

Unified Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.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/WebPluginContainerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
index 32e9b9bfedd88bc54624c4b609752c429968e675..a971232ae0f0bd9c3c005480eb543729efe65e01 100644
--- a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
@@ -476,9 +476,9 @@ WebString WebPluginContainerImpl::executeScriptURL(const WebURL& url,
String script = decodeURLEscapeSequences(
kurl.getString().substring(strlen("javascript:")));
- UserGestureIndicator gestureIndicator(popupsAllowed
- ? DefinitelyProcessingNewUserGesture
- : PossiblyProcessingUserGesture);
+ UserGestureIndicator gestureIndicator(
+ popupsAllowed ? UserGestureToken::create(UserGestureToken::NewGesture)
+ : nullptr);
v8::HandleScope handleScope(toIsolate(frame));
v8::Local<v8::Value> result =
frame->script().executeScriptInMainWorldAndReturnValue(
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/Source/web/WebScopedUserGesture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698