diff options
-rw-r--r-- | chrome/browser/chromeos/login/user_image_screen.cc | 1 | ||||
-rw-r--r-- | chrome/browser/chromeos/login/user_manager.cc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/login/user_image_screen.cc b/chrome/browser/chromeos/login/user_image_screen.cc index 7151b4d..d4b67c4 100644 --- a/chrome/browser/chromeos/login/user_image_screen.cc +++ b/chrome/browser/chromeos/login/user_image_screen.cc @@ -124,6 +124,7 @@ void UserImageScreen::OnOK(const SkBitmap& image) { const UserManager::User& user = user_manager->logged_in_user(); DCHECK(!user.email().empty()); + user_manager->SetLoggedInUserImage(image); user_manager->SaveUserImage(user.email(), image); if (delegate()) delegate()->GetObserver(this)->OnExit(ScreenObserver::USER_IMAGE_SELECTED); diff --git a/chrome/browser/chromeos/login/user_manager.cc b/chrome/browser/chromeos/login/user_manager.cc index ada146e..1a6c6ef 100644 --- a/chrome/browser/chromeos/login/user_manager.cc +++ b/chrome/browser/chromeos/login/user_manager.cc @@ -251,6 +251,7 @@ void UserManager::UserLoggedIn(const std::string& email) { ListValue* prefs_users = prefs->GetMutableList(kLoggedInUsers); prefs_users->Clear(); + logged_in_user_ = User(); logged_in_user_.set_email(email); // Make sure this user is first. |