| Index: chrome/browser/chromeos/login/existing_user_controller.cc
|
| diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc
|
| index cc73ff0c8be00c089dd57f71ade4ed79fa6afac8..51e66ebb4d23e1228a4bf3d645c9d6f68fb4af4f 100644
|
| --- a/chrome/browser/chromeos/login/existing_user_controller.cc
|
| +++ b/chrome/browser/chromeos/login/existing_user_controller.cc
|
| @@ -1000,8 +1000,17 @@ void ExistingUserController::InitializeStartUrls() const {
|
| customization->ApplyCustomization();
|
| }
|
|
|
| - for (size_t i = 0; i < start_urls.size(); ++i) {
|
| - CommandLine::ForCurrentProcess()->AppendArg(start_urls[i]);
|
| +
|
| + // 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).
|
| + if (UserManager::Get()->IsCurrentUserNew()) {
|
| + CommandLine::ForCurrentProcess()->AppendSwitchASCII(
|
| + ::switches::kSilentLaunch, "");
|
| + } else {
|
| + for (size_t i = 0; i < start_urls.size(); ++i) {
|
| + CommandLine::ForCurrentProcess()->AppendArg(start_urls[i]);
|
| + }
|
| }
|
| }
|
|
|
|
|