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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator.cc

Issue 1149263003: Add user_gesture param to BaseWindow::Activate Base URL: https://chromium.googlesource.com/chromium/src.git@ug2_WebContentsDelegate_ActivateContents
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/startup/startup_browser_creator.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc
index 82f182bb39d5ad8258840ca0900d60f37575a454..4451e70128f4ff8f32045eea2e3062d215a3681f 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc
@@ -208,7 +208,7 @@ class ProfileLaunchObserver : public content::NotificationObserver {
// incognito Windows and one of them was used to exit Chrome.
// So it won't have a browser in that case.
if (browser)
- browser->window()->Activate();
+ browser->window()->Activate(true /* user_gesture */);
// No need try to activate this profile again.
profile_to_activate_ = NULL;
}

Powered by Google App Engine
This is Rietveld 408576698