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

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

Issue 10827154: Preload default wallpaper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nikita's reivew Created 8 years, 4 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/wallpaper_manager.h
diff --git a/chrome/browser/chromeos/login/wallpaper_manager.h b/chrome/browser/chromeos/login/wallpaper_manager.h
index 603fb55c844c3192a2bc32d126324eb8b10718aa..f31eb7b75c59ff4377ae23775e5a076d11961ef2 100644
--- a/chrome/browser/chromeos/login/wallpaper_manager.h
+++ b/chrome/browser/chromeos/login/wallpaper_manager.h
@@ -45,9 +45,6 @@ class WallpaperManager: public system::TimezoneSettings::Observer,
// added after PowerManagerClient initialized.
void AddObservers();
- // Caches |email|'s wallpaper to memory if it is custom wallpaper.
- void CacheIfCustomWallpaper(const std::string& email);
-
// Loads wallpaper asynchronously if the current wallpaper is not the
// wallpaper of logged in user.
void EnsureLoggedInUserWallpaperLoaded();
@@ -134,6 +131,11 @@ class WallpaperManager: public system::TimezoneSettings::Observer,
// at 0am if chromeos device is on.
void BatchUpdateWallpaper();
+ void CacheAllUsersWallpapers();
+
+ // Caches |email|'s wallpaper to memory.
+ void CacheUserWallpaper(const std::string& email);
+
// Caches the decoded wallpaper to memory.
void CacheWallpaper(const std::string& email, const UserImage& wallpaper);
@@ -200,6 +202,8 @@ class WallpaperManager: public system::TimezoneSettings::Observer,
// The last selected user on user pod row.
std::string last_selected_user_;
+ bool should_cache_wallpaper_;
+
base::WeakPtrFactory<WallpaperManager> weak_factory_;
content::NotificationRegistrar registrar_;

Powered by Google App Engine
This is Rietveld 408576698