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

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

Issue 10207030: Asynchronously load wallpapers when user pod is selected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add user wallpaper for first time logged in user and ephemeral users Created 8 years, 8 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_impl.h
diff --git a/chrome/browser/chromeos/login/user_manager_impl.h b/chrome/browser/chromeos/login/user_manager_impl.h
index 18630e632da91ffcaab81dba2606871aaea53b86..aacb058a70813ea204a933ebd0121fe1d88c5743 100644
--- a/chrome/browser/chromeos/login/user_manager_impl.h
+++ b/chrome/browser/chromeos/login/user_manager_impl.h
@@ -47,6 +47,7 @@ class UserManagerImpl : public UserManager,
virtual void DemoUserLoggedIn() OVERRIDE;
virtual void GuestUserLoggedIn() OVERRIDE;
virtual void EphemeralUserLoggedIn(const std::string& email) OVERRIDE;
+ virtual void UserSelected(const std::string& email) OVERRIDE;
virtual void RemoveUser(const std::string& email,
RemoveUserDelegate* delegate) OVERRIDE;
virtual void RemoveUserFromList(const std::string& email) OVERRIDE;
@@ -126,6 +127,8 @@ class UserManagerImpl : public UserManager,
// list. Returns |NULL| otherwise.
const User* FindUserInList(const std::string& email) const;
+ int FindUserWallpaperIndex(const std::string& email);
+
// Makes stub user the current logged-in user (for test paths).
void StubUserLoggedIn();
@@ -142,6 +145,10 @@ class UserManagerImpl : public UserManager,
// Does not send LOGIN_USER_IMAGE_CHANGED notification.
void SetInitialUserImage(const std::string& username);
+ // Sets one of the default wallpapers for the specified user and saves this
+ // settings in local state.
+ void SetInitialUserWallpaper(const std::string& username);
+
// Sets image for user |username| and sends LOGIN_USER_IMAGE_CHANGED
// notification unless this is a new user and image is set for the first time.
// If |image| is empty, sets a stub image for the user.

Powered by Google App Engine
This is Rietveld 408576698