Index: chrome/browser/chromeos/login/user_image_screen.cc |
diff --git a/chrome/browser/chromeos/login/user_image_screen.cc b/chrome/browser/chromeos/login/user_image_screen.cc |
index cf0ebbc47a3cf4c171ec8aeacfd83487d412d41d..b1d73a322b2074d42af13c64c5401031d075cc18 100644 |
--- a/chrome/browser/chromeos/login/user_image_screen.cc |
+++ b/chrome/browser/chromeos/login/user_image_screen.cc |
@@ -10,6 +10,7 @@ |
#include "chrome/browser/chromeos/login/default_user_images.h" |
#include "chrome/browser/chromeos/login/login_utils.h" |
#include "chrome/browser/chromeos/login/screen_observer.h" |
+#include "chrome/browser/chromeos/login/user_image.h" |
#include "chrome/browser/chromeos/login/user_manager.h" |
#include "chrome/common/chrome_notification_types.h" |
#include "content/public/browser/notification_service.h" |
@@ -110,7 +111,8 @@ void UserImageScreen::StopCamera() { |
void UserImageScreen::OnPhotoTaken(const gfx::ImageSkia& image) { |
UserManager* user_manager = UserManager::Get(); |
- user_manager->SaveUserImage(user_manager->GetLoggedInUser().email(), image); |
+ user_manager->SaveUserImage(user_manager->GetLoggedInUser().email(), |
+ UserImage(image)); |
get_screen_observer()->OnExit(ScreenObserver::USER_IMAGE_SELECTED); |