Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(874)

Unified Diff: chrome/browser/chromeos/login/user_manager.h

Issue 9580023: Enable user change background image in settings page in Aura build. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Save user choosed index to local state Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 6e70d7cccc4a2a00169a9fe6400573e316668955..dcef6a81d0742bf5139abbdf291d931a8702a96e 100644
--- a/chrome/browser/chromeos/login/user_manager.h
+++ b/chrome/browser/chromeos/login/user_manager.h
@@ -99,6 +99,16 @@ class UserManager : public ProfileDownloaderDelegate,
// Otherwise, returns |username| itself.
std::string GetUserDisplayEmail(const std::string& username) const;
+ // 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.
+ int GetUserWallpaper(const std::string& username);
+
+ // Stores index to the user choosed defautl wallpaper in local state.
flackr 2012/03/06 17:16:49 Sets the user wallpaper to the default wallpaper w
bshe 2012/03/06 19:56:16 Done.
+ void SaveWallpaperToLocalState(const std::string& username,
+ int wallpaper_index);
flackr 2012/03/06 17:16:49 As with SaveUserDefaultImageIndex below, call this
bshe 2012/03/06 19:56:16 Done.
+
// Sets user image to the default image with index |image_index|, sends
// LOGIN_USER_IMAGE_CHANGED notification and updates Local State.
void SaveUserDefaultImageIndex(const std::string& username, int image_index);

Powered by Google App Engine
This is Rietveld 408576698