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

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

Issue 190993003: Invalidate all wallpaper cache if display configuration changed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win compile Created 6 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/wallpaper_manager.h
diff --git a/chrome/browser/chromeos/login/wallpaper_manager.h b/chrome/browser/chromeos/login/wallpaper_manager.h
index 2ce442c4da802017687821113240be615b500220..5cd9f2f8378bbb031bb09d454649a3afcee518c6 100644
--- a/chrome/browser/chromeos/login/wallpaper_manager.h
+++ b/chrome/browser/chromeos/login/wallpaper_manager.h
@@ -86,7 +86,7 @@ class WallpaperManager: public content::NotificationObserver {
void SetWallpaperCache(const std::string& user_id,
const gfx::ImageSkia& image);
- void ClearWallpaperCache();
+ void ClearDisposableWallpaperCache();
private:
WallpaperManager* wallpaper_manager_; // not owned
@@ -189,8 +189,9 @@ class WallpaperManager: public content::NotificationObserver {
// wallpaper of logged in user.
void EnsureLoggedInUserWallpaperLoaded();
- // Clears ONLINE and CUSTOM wallpaper cache.
- void ClearWallpaperCache();
+ // Clears disposable ONLINE and CUSTOM wallpaper cache. At multi profile
+ // world, logged in users' wallpaper cache is not disposable.
+ void ClearDisposableWallpaperCache();
// Returns custom wallpaper path. Append |sub_dir|, |user_id_hash| and |file|
// to custom wallpaper directory.
@@ -280,7 +281,7 @@ class WallpaperManager: public content::NotificationObserver {
// Updates current wallpaper. It may switch the size of wallpaper based on the
// current display's resolution. (asynchronously with zero delay)
- void UpdateWallpaper();
+ void UpdateWallpaper(bool clear_cache);
// Adds given observer to the list.
void AddObserver(Observer* observer);

Powered by Google App Engine
This is Rietveld 408576698