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

Unified Diff: chrome/browser/chromeos/login/existing_user_controller.cc

Issue 15163003: Don't open Chrome browser window on first login of a new user. Because it will hide Getting Started… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change an implementation Created 7 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]);
+ }
}
}
« no previous file with comments | « no previous file | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698