diff options
author | dzhioev@google.com <dzhioev@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-03 16:27:52 +0000 |
---|---|---|
committer | dzhioev@google.com <dzhioev@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-03 16:27:52 +0000 |
commit | c7c1abc7b7c7ca539de99f0e73d067d80444e2b6 (patch) | |
tree | 7449d8e4d7e84da5e0fde674beadcc6e47e93375 | |
parent | aa5195ad1b42a3ae65c74fabe6a3f39dd9d1c7d2 (diff) | |
download | chromium_src-c7c1abc7b7c7ca539de99f0e73d067d80444e2b6.zip chromium_src-c7c1abc7b7c7ca539de99f0e73d067d80444e2b6.tar.gz chromium_src-c7c1abc7b7c7ca539de99f0e73d067d80444e2b6.tar.bz2 |
Do not show first-run UI for ephemeral users.
TEST=manually
BUG=346261
R=nkostylev@chromium.org
Review URL: https://codereview.chromium.org/178203002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254473 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/chromeos/login/existing_user_controller.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc index a875e3a..72acdc4 100644 --- a/chrome/browser/chromeos/login/existing_user_controller.cc +++ b/chrome/browser/chromeos/login/existing_user_controller.cc @@ -1015,9 +1015,11 @@ void ExistingUserController::InitializeStartUrls() const { std::vector<std::string> start_urls; const base::ListValue *urls; + UserManager* user_manager = UserManager::Get(); bool can_show_getstarted_guide = - UserManager::Get()->GetActiveUser()->GetType() == User::USER_TYPE_REGULAR; - if (UserManager::Get()->IsLoggedInAsDemoUser()) { + user_manager->GetActiveUser()->GetType() == User::USER_TYPE_REGULAR && + !user_manager->IsCurrentUserNonCryptohomeDataEphemeral(); + if (user_manager->IsLoggedInAsDemoUser()) { if (CrosSettings::Get()->GetList(kStartUpUrls, &urls)) { // The retail mode user will get start URLs from a special policy if it is // set. @@ -1030,7 +1032,7 @@ void ExistingUserController::InitializeStartUrls() const { } can_show_getstarted_guide = false; // Skip the default first-run behavior for public accounts. - } else if (!UserManager::Get()->IsLoggedInAsPublicAccount()) { + } else if (!user_manager->IsLoggedInAsPublicAccount()) { if (AccessibilityManager::Get()->IsSpokenFeedbackEnabled()) { const char* url = kChromeVoxTutorialURLPattern; PrefService* prefs = g_browser_process->local_state(); @@ -1043,8 +1045,7 @@ void ExistingUserController::InitializeStartUrls() const { } // Only show getting started guide for a new user. - const bool should_show_getstarted_guide = - UserManager::Get()->IsCurrentUserNew(); + const bool should_show_getstarted_guide = user_manager->IsCurrentUserNew(); if (can_show_getstarted_guide && should_show_getstarted_guide) { // Don't open default Chrome window if we're going to launch the first-run |