| 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..f5b635b9b2582b2605a06f33c07f018f82d94602 100644
|
| --- a/chrome/browser/ui/startup/startup_browser_creator.cc
|
| +++ b/chrome/browser/ui/startup/startup_browser_creator.cc
|
| @@ -252,6 +252,20 @@ bool StartupBrowserCreator::LaunchBrowser(
|
| chrome::startup::IsProcessStartup process_startup,
|
| chrome::startup::IsFirstRun is_first_run,
|
| int* return_code) {
|
| +
|
| +#if defined(OS_CHROMEOS)
|
| + // Don't open default Chrome window for the first login of a new
|
| + // user because it will hide the Getting Started App window (which is
|
| + // launched automatically in that situation).
|
| + //
|
| + // Note: Ideally this check should be put in ProcessCmdLineImpl()
|
| + // before calling this function. However, chromeos/login/login_utils.cc
|
| + // calls this function directly (see comments there) so I have to get it
|
| + // down here.
|
| + if (chromeos::UserManager::Get()->IsCurrentUserNew())
|
| + return true;
|
| +#endif
|
| +
|
| in_synchronous_profile_launch_ =
|
| process_startup == chrome::startup::IS_PROCESS_STARTUP;
|
| DCHECK(profile);
|
|
|