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

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

Issue 9839098: Fix wallpaper change to a random one when user first click "set wallpaper". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_chromeos crash 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 28681f0f2c3f5d6212cb94990beb7213b3669a52..18caa2b6eb3b1c259cf47ae9369892f71496f9c8 100644
--- a/chrome/browser/chromeos/login/user_manager.h
+++ b/chrome/browser/chromeos/login/user_manager.h
@@ -136,16 +136,14 @@ 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;
+ // Returns the index of the default wallpapers saved in local state for login
+ // user if it is known (was previousely set by |SaveWallpaperToLocalState|
+ // call). Otherwise, returns a randomly generated index.
+ virtual int GetUserWallpaperIndex() = 0;
+
+ // Save the index |wallpaper_index| of the default wallpapers selected by
+ // current user to Local State.
+ virtual void SaveUserWallpaperIndex(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.

Powered by Google App Engine
This is Rietveld 408576698