| Index: chrome/browser/chromeos/login/user_manager_impl.h
|
| diff --git a/chrome/browser/chromeos/login/user_manager_impl.h b/chrome/browser/chromeos/login/user_manager_impl.h
|
| index 581f4e450e6444a0e2060525049bdec589e8bf49..26b7bcb250c7025d8caecfd58b89b635d5cbb66c 100644
|
| --- a/chrome/browser/chromeos/login/user_manager_impl.h
|
| +++ b/chrome/browser/chromeos/login/user_manager_impl.h
|
| @@ -32,6 +32,7 @@ class ProfileSyncService;
|
| namespace chromeos {
|
|
|
| class RemoveUserDelegate;
|
| +class UserImage;
|
|
|
| // Implementation of the UserManager.
|
| class UserManagerImpl : public UserManager,
|
| @@ -73,7 +74,7 @@ class UserManagerImpl : public UserManager,
|
| virtual void SaveUserDefaultImageIndex(const std::string& username,
|
| int image_index) OVERRIDE;
|
| virtual void SaveUserImage(const std::string& username,
|
| - const SkBitmap& image) OVERRIDE;
|
| + const UserImage& user_image) OVERRIDE;
|
| virtual void SetLoggedInUserCustomWallpaperLayout(
|
| ash::WallpaperLayout layout) OVERRIDE;
|
| virtual void SaveUserImageFromFile(const std::string& username,
|
| @@ -172,7 +173,7 @@ class UserManagerImpl : public UserManager,
|
| // If |image| is empty, sets a stub image for the user.
|
| void SetUserImage(const std::string& username,
|
| int image_index,
|
| - const SkBitmap& image);
|
| + const UserImage& user_image);
|
|
|
| void GetUserWallpaperProperties(const std::string& username,
|
| User::WallpaperType* type,
|
| @@ -185,7 +186,7 @@ class UserManagerImpl : public UserManager,
|
| // and sends LOGIN_USER_IMAGE_CHANGED notification.
|
| void SaveUserImageInternal(const std::string& username,
|
| int image_index,
|
| - const SkBitmap& image);
|
| + const UserImage& user_image);
|
|
|
| // Saves wallpaper to file, post task to generate thumbnail and updates local
|
| // state preferences.
|
| @@ -193,16 +194,16 @@ class UserManagerImpl : public UserManager,
|
| ash::WallpaperLayout layout,
|
| User::WallpaperType type,
|
| WallpaperDelegate* delegate,
|
| - const SkBitmap& image);
|
| + const UserImage& user_image);
|
|
|
| // Loads custom wallpaper thumbnail asynchronously.
|
| void LoadCustomWallpaperThumbnail(const std::string& email,
|
| ash::WallpaperLayout layout,
|
| - const SkBitmap& wallpaper);
|
| + const UserImage& user_image);
|
|
|
| // Caches the loaded wallpaper for the given user.
|
| void OnCustomWallpaperThumbnailLoaded(const std::string& email,
|
| - const SkBitmap& wallpaper);
|
| + const UserImage& user_image);
|
|
|
| // Updates the custom wallpaper thumbnail in wallpaper picker UI.
|
| void OnThumbnailUpdated(WallpaperDelegate* delegate);
|
| @@ -217,7 +218,7 @@ class UserManagerImpl : public UserManager,
|
| // notification. Runs on FILE thread. Posts task for saving image info to
|
| // Local State on UI thread.
|
| void SaveImageToFile(const std::string& username,
|
| - const SkBitmap& image,
|
| + const UserImage& user_image,
|
| const FilePath& image_path,
|
| int image_index);
|
|
|
| @@ -244,7 +245,7 @@ class UserManagerImpl : public UserManager,
|
| User::WallpaperType type);
|
|
|
| // Saves |image| to the specified |image_path|. Runs on FILE thread.
|
| - bool SaveBitmapToFile(const SkBitmap& image,
|
| + bool SaveBitmapToFile(const UserImage& user_image,
|
| const FilePath& image_path);
|
|
|
| // Initializes |downloaded_profile_picture_| with the picture of the logged-in
|
|
|