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

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

Issue 660813002: [Win] Add a fast profile switcher to the Windows taskbar item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: locking! browser test! nits! Created 6 years, 1 month 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 381f26533567411023af064022ddddb521e9decb..d913efa7b3bf7a4a9647c62832433ee8923a36a8 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc
@@ -746,6 +746,15 @@ void StartupBrowserCreator::ProcessCommandLineAlreadyRunning(
return;
}
+ if (command_line.HasSwitch(switches::kActivateExistingProfileBrowser)) {
tapted 2014/11/04 23:10:48 nit: perhaps comment here, something like "If the
noms (inactive) 2014/11/10 21:46:08 Done.
+ Browser* browser = chrome::FindTabbedBrowser(
+ profile, false, chrome::HOST_DESKTOP_TYPE_NATIVE);
+ if (browser) {
+ browser->window()->Activate();
+ return;
+ }
+ }
+
ProcessCmdLineImpl(command_line, cur_dir, false, profile, Profiles(), NULL,
NULL);
}

Powered by Google App Engine
This is Rietveld 408576698