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

Unified Diff: ash/accelerators/debug_commands.cc

Issue 215293003: Move all wallpaper file loading and decoding from DesktopBackgroundController to WallpaperManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows build. 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: ash/accelerators/debug_commands.cc
diff --git a/ash/accelerators/debug_commands.cc b/ash/accelerators/debug_commands.cc
index 4ca1720e3a00d581eebe5e70d3199d69d2488094..2529dfa6052bd44d5b95f4d6dd854ab5ab409ea5 100644
--- a/ash/accelerators/debug_commands.cc
+++ b/ash/accelerators/debug_commands.cc
@@ -44,17 +44,17 @@ bool CycleDesktopBackgroundMode() {
InitializeWallpaper();
break;
case 1:
- desktop_background_controller->SetCustomWallpaper(
+ desktop_background_controller->SetWallpaper(
CreateWallpaperImage(SK_ColorRED, SK_ColorBLUE),
WALLPAPER_LAYOUT_STRETCH);
break;
case 2:
- desktop_background_controller->SetCustomWallpaper(
+ desktop_background_controller->SetWallpaper(
CreateWallpaperImage(SK_ColorBLUE, SK_ColorGREEN),
WALLPAPER_LAYOUT_CENTER);
break;
case 3:
- desktop_background_controller->SetCustomWallpaper(
+ desktop_background_controller->SetWallpaper(
CreateWallpaperImage(SK_ColorGREEN, SK_ColorRED),
WALLPAPER_LAYOUT_CENTER_CROPPED);
break;

Powered by Google App Engine
This is Rietveld 408576698