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

Unified Diff: chrome/browser/ui/views/chrome_javascript_native_dialog_factory_views.cc

Issue 1153813003: Add user_gesture param to WebContentsDelegate::ActivateContents Base URL: https://chromium.googlesource.com/chromium/src.git@ug1_WebContentsImpl_Activate
Patch Set: Update callers Created 5 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: chrome/browser/ui/views/chrome_javascript_native_dialog_factory_views.cc
diff --git a/chrome/browser/ui/views/chrome_javascript_native_dialog_factory_views.cc b/chrome/browser/ui/views/chrome_javascript_native_dialog_factory_views.cc
index e6ebf96c7d69e6eeeb57e0f41f131d22d9b4c927..d1b1f9a25ffef78aeeea668d54c70e4411ce5b0e 100644
--- a/chrome/browser/ui/views/chrome_javascript_native_dialog_factory_views.cc
+++ b/chrome/browser/ui/views/chrome_javascript_native_dialog_factory_views.cc
@@ -57,8 +57,9 @@ class ChromeJavaScriptNativeDialogViewsFactory
d = new ChromeJavaScriptAppModalDialogViews(dialog);
#endif
+ // TODO(johnme): Can we sometimes be certain this was for a user gesture?
dialog->web_contents()->GetDelegate()->ActivateContents(
- dialog->web_contents());
+ dialog->web_contents(), false /* user_gesture */);
gfx::NativeWindow parent_window =
dialog->web_contents()->GetTopLevelNativeWindow();
#if defined(USE_AURA)
« no previous file with comments | « chrome/browser/ui/panels/panel_host.cc ('k') | chrome/browser/ui/webui/media_router/media_router_dialog_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698