Chromium Code Reviews| 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..01896736b6375064c3849cc8eb47532d43c14d47 100644 |
| --- a/chrome/browser/ui/startup/startup_browser_creator.cc |
| +++ b/chrome/browser/ui/startup/startup_browser_creator.cc |
| @@ -623,6 +623,15 @@ bool StartupBrowserCreator::ProcessCmdLineImpl( |
| return true; |
| } |
| + if (command_line.HasSwitch(switches::kReuseExistingProfileBrowser)) { |
|
tapted
2014/11/03 23:57:06
an OWNER here might have a different opinion, but
noms (inactive)
2014/11/04 20:03:09
Done.
|
| + Browser* browser = chrome::FindTabbedBrowser(last_used_profile, false, |
|
tapted
2014/11/03 23:57:06
nit: one arg per line.
noms (inactive)
2014/11/04 20:03:09
Done.
|
| + chrome::HOST_DESKTOP_TYPE_NATIVE); |
| + if (browser) { |
| + browser->window()->Activate(); |
| + return true; |
| + } |
| + } |
| + |
| chrome::startup::IsProcessStartup is_process_startup = process_startup ? |
| chrome::startup::IS_PROCESS_STARTUP : |
| chrome::startup::IS_NOT_PROCESS_STARTUP; |