From ad92674f6bde044e399622b17f564c7c43793145 Mon Sep 17 00:00:00 2001 From: "dzhioev@chromium.org" Date: Wed, 20 Nov 2013 08:47:47 +0000 Subject: [PATCH] Added flag that forces first-run UI to show every login. Flag name is force-first-run-ui. BUG=none Review URL: https://codereview.chromium.org/77483002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236209 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chromeos/login/login_display_host_impl.cc | 4 +++- chromeos/chromeos_switches.cc | 3 +++ chromeos/chromeos_switches.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/chrome/browser/chromeos/login/login_display_host_impl.cc b/chrome/browser/chromeos/login/login_display_host_impl.cc index 399788af6daf..e81e1efc0bb8 100644 --- a/chrome/browser/chromeos/login/login_display_host_impl.cc +++ b/chrome/browser/chromeos/login/login_display_host_impl.cc @@ -367,7 +367,9 @@ LoginDisplayHostImpl::~LoginDisplayHostImpl() { // TODO(dzhioev): find better place for starting tutorial. if (CommandLine::ForCurrentProcess()-> HasSwitch(switches::kEnableFirstRunUI) && - chromeos::UserManager::Get()->IsCurrentUserNew()) { + (chromeos::UserManager::Get()->IsCurrentUserNew() || + CommandLine::ForCurrentProcess()-> + HasSwitch(switches::kForceFirstRunUI))) { // FirstRunController manages its lifetime and destructs after tutorial // completion. FirstRunController::Start(); diff --git a/chromeos/chromeos_switches.cc b/chromeos/chromeos_switches.cc index 9a699f57ee28..c3412f7a65a9 100644 --- a/chromeos/chromeos_switches.cc +++ b/chromeos/chromeos_switches.cc @@ -189,6 +189,9 @@ const char kEnableSamlSignin[] = "enable-saml-signin"; // Enables new first-run overlay UI. const char kEnableFirstRunUI[] = "enable-first-run-ui"; +// Forces first-run UI to be shown for every login. +const char kForceFirstRunUI[] = "force-first-run-ui"; + // Enables testing for auto update UI. const char kTestAutoUpdateUI[] = "test-auto-update-ui"; diff --git a/chromeos/chromeos_switches.h b/chromeos/chromeos_switches.h index 50ecabb4a314..d854f2fd2c47 100644 --- a/chromeos/chromeos_switches.h +++ b/chromeos/chromeos_switches.h @@ -71,6 +71,7 @@ CHROMEOS_EXPORT extern const char kSmsTestMessages[]; CHROMEOS_EXPORT extern const char kStubCrosSettings[]; CHROMEOS_EXPORT extern const char kDisableUserImageSync[]; CHROMEOS_EXPORT extern const char kEnableFirstRunUI[]; +CHROMEOS_EXPORT extern const char kForceFirstRunUI[]; CHROMEOS_EXPORT extern const char kEnableSamlSignin[]; CHROMEOS_EXPORT extern const char kTestAutoUpdateUI[]; -- 2.11.4.GIT