| 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 62af691e8d513b171da28fa6acfe728f11c30ed1..e9f3a523f77634845ab8502a66b93a383215764e 100644
|
| --- a/chrome/browser/ui/startup/startup_browser_creator.cc
|
| +++ b/chrome/browser/ui/startup/startup_browser_creator.cc
|
| @@ -252,6 +252,15 @@ bool StartupBrowserCreator::LaunchBrowser(
|
| chrome::startup::IsProcessStartup process_startup,
|
| chrome::startup::IsFirstRun is_first_run,
|
| int* return_code) {
|
| +
|
| + // Note: This check should have been done in ProcessCmdLineImpl()
|
| + // before calling this function. However chromeos/login/login_utils.cc
|
| + // calls this function directly (see comments there) so I have to check it
|
| + // again as a workaround.
|
| + if (command_line.HasSwitch(switches::kSilentLaunch)) {
|
| + return true;
|
| + }
|
| +
|
| in_synchronous_profile_launch_ =
|
| process_startup == chrome::startup::IS_PROCESS_STARTUP;
|
| DCHECK(profile);
|
|
|