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

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

Issue 15074010: suppress default chorme window on first login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 7be97c5bba4df7d94d373860462345f0051d2b28..ad7f538af87b256b7dbf9ef2f0bc5ada737bcaac 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -41,6 +41,7 @@
#include "chrome/browser/policy/policy_service.h"
#include "chrome/browser/prefs/session_startup_pref.h"
#include "chrome/common/chrome_notification_types.h"
+#include "chrome/common/chrome_switches.h"
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
@@ -1015,8 +1016,13 @@ void ExistingUserController::InitializeStartUrls() const {
customization->ApplyCustomization();
}
- for (size_t i = 0; i < start_urls.size(); ++i) {
- CommandLine::ForCurrentProcess()->AppendArg(start_urls[i]);
+ 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