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

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

Issue 190993003: Invalidate all wallpaper cache if display configuration changed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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.cc
diff --git a/chrome/browser/chromeos/login/wallpaper_manager.cc b/chrome/browser/chromeos/login/wallpaper_manager.cc
index 14cfbf3c22b0b5206cf5ea356b61a9500154d361..75f5a769d3cbaa92b24611610d2fb8b41fc7bd8e 100644
--- a/chrome/browser/chromeos/login/wallpaper_manager.cc
+++ b/chrome/browser/chromeos/login/wallpaper_manager.cc
@@ -828,8 +828,9 @@ void WallpaperManager::SetWallpaperFromImageSkia(
}
}
-void WallpaperManager::UpdateWallpaper() {
- ClearWallpaperCache();
Nikita (slow) 2014/03/11 16:34:50 What's the difference?
bshe 2014/03/11 22:52:35 ClearWallpaperCache is probably misnamed. It will
+void WallpaperManager::UpdateWallpaper(bool clear_cache) {
+ if (clear_cache)
+ wallpaper_cache_.clear();
current_wallpaper_path_.clear();
// For GAIA login flow, the last_selected_user_ may not be set before user
// login. If UpdateWallpaper is called at GAIA login screen, no wallpaper will

Powered by Google App Engine
This is Rietveld 408576698