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

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

Issue 9703031: Retry landing "Enable users change desktop background image from settings page in Chromeos Aura bui… (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merge to trunk 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
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.h ('k') | chrome/browser/chromeos/login/user_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.h ('k') | chrome/browser/chromeos/login/user_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698