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

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: address review 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 2f4f5e6013295e7c4cb99a5630022cb7c3c5473f..119f62b5aa0564dd6d12fccaf06eec510b5ca22a 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[];
@@ -111,6 +114,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,

Powered by Google App Engine
This is Rietveld 408576698