diff options
-rw-r--r-- | chrome/browser/chromeos/login/existing_user_controller.cc | 2 | ||||
-rw-r--r-- | chrome/browser/chromeos/login/existing_user_controller_browsertest.cc | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc index f562c23..5ef8b56 100644 --- a/chrome/browser/chromeos/login/existing_user_controller.cc +++ b/chrome/browser/chromeos/login/existing_user_controller.cc @@ -364,6 +364,7 @@ void ExistingUserController::OnProfilePrepared(Profile* profile) { // Delay deletion as we're on the stack. host_->OnSessionStart(); } + login_display_->OnFadeOut(); } void ExistingUserController::OnOffTheRecordLoginSuccess() { @@ -441,7 +442,6 @@ void ExistingUserController::ActivateWizard(const std::string& screen_name) { if (chromeos::UserManager::Get()->IsLoggedInAsGuest()) start_url = guest_mode_url_; host_->StartWizard(screen_name, start_url); - login_display_->OnFadeOut(); } gfx::NativeWindow ExistingUserController::GetNativeWindow() const { diff --git a/chrome/browser/chromeos/login/existing_user_controller_browsertest.cc b/chrome/browser/chromeos/login/existing_user_controller_browsertest.cc index 7f242b4..a73913d 100644 --- a/chrome/browser/chromeos/login/existing_user_controller_browsertest.cc +++ b/chrome/browser/chromeos/login/existing_user_controller_browsertest.cc @@ -83,9 +83,10 @@ class MockLoginPerformerDelegate : public LoginPerformer::Delegate { const std::string&, const GaiaAuthConsumer::ClientLoginResult&, bool) { + WizardController::MarkDeviceRegistered(); LoginPerformer* login_performer = controller_->login_performer_.release(); login_performer = NULL; - controller_->ActivateWizard(WizardController::kUserImageScreenName); + controller_->OnProfilePrepared(NULL); } MOCK_METHOD1(OnLoginFailure, void(const LoginFailure&)); |