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

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

Issue 931853003: [Win] Revert the profile switcher code from the jumplist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: also remove kActivateExistingProfileBrowser Created 5 years, 10 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 d7d344cb8a65aebc5a99e89be65a3caa58223234..fbcb3de9274ce3fb434952407f5bed233930fa2f 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc
@@ -649,19 +649,6 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
jumplist::LogJumplistActionFromSwitchValue(
command_line.GetSwitchValueASCII(switches::kWinJumplistAction));
}
-
- // If the profile is loaded and the --activate-existing-profile-browser flag
- // is used, activate one of the profile's browser windows, if one exists.
- // Continuing to process the command line is not needed, since this will
- // end up opening a new browser window.
- if (command_line.HasSwitch(switches::kActivateExistingProfileBrowser)) {
- Browser* browser = chrome::FindTabbedBrowser(
- last_used_profile, false, chrome::HOST_DESKTOP_TYPE_NATIVE);
- if (browser) {
- browser->window()->Activate();
- return true;
- }
- }
#endif
VLOG(2) << "ProcessCmdLineImpl: PLACE 5";
« no previous file with comments | « chrome/browser/metrics/jumplist_metrics_win.cc ('k') | chrome/browser/ui/startup/startup_browser_creator_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698