Index: chrome/browser/chromeos/login/user_manager.h |
diff --git a/chrome/browser/chromeos/login/user_manager.h b/chrome/browser/chromeos/login/user_manager.h |
index c3adf4cde0219ccffae1b9a8213b0cca0295cfb1..1696270e9b08d174c0b1c0d2f713ab321603a40a 100644 |
--- a/chrome/browser/chromeos/login/user_manager.h |
+++ b/chrome/browser/chromeos/login/user_manager.h |
@@ -37,6 +37,9 @@ class UserManager { |
// A vector pref of the users who have logged into the device. |
static const char kLoggedInUsers[]; |
+ // A dictionary that maps usernames to file paths to their wallpapers. |
+ static const char kUserWallpapers[]; |
+ |
// A dictionary that maps usernames to file paths to their images. |
static const char kUserImages[]; |
@@ -113,6 +116,17 @@ class UserManager { |
virtual std::string GetUserDisplayEmail( |
const std::string& username) const = 0; |
+ // Returns the index of the default wallpapers saved in local state for user |
+ // |username| if it is known (was previousely set by |
+ // |SaveWallpaperToLocalState| call). |
+ // Otherwise, returns default wallpaper index. |
+ virtual int GetUserWallpaper(const std::string& username) = 0; |
+ |
+ // Sets user wallpaper to the default wallpaper with index |wallpaper_index|, |
+ // updates Local State. |
+ virtual void SaveWallpaperDefaultIndex(const std::string& username, |
+ int wallpaper_index) = 0; |
+ |
// Sets user image to the default image with index |image_index|, sends |
// LOGIN_USER_IMAGE_CHANGED notification and updates Local State. |
virtual void SaveUserDefaultImageIndex(const std::string& username, |