Chromium Code Reviews| Index: ash/accelerators/accelerator_controller_delegate_aura.cc |
| diff --git a/ash/accelerators/accelerator_controller_delegate_aura.cc b/ash/accelerators/accelerator_controller_delegate_aura.cc |
| index bb430d3df2a29edb390d669197889c8b90b71c95..cedf66fd1ababf21b148ad2cdb22b8c1bcc15bb8 100644 |
| --- a/ash/accelerators/accelerator_controller_delegate_aura.cc |
| +++ b/ash/accelerators/accelerator_controller_delegate_aura.cc |
| @@ -20,6 +20,7 @@ |
| #include "ash/common/shell_window_ids.h" |
| #include "ash/common/system/system_notifier.h" |
| #include "ash/common/system/tray/system_tray.h" |
| +#include "ash/common/wallpaper/wallpaper_controller.h" |
| #include "ash/common/wallpaper/wallpaper_delegate.h" |
| #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" |
| #include "ash/common/wm/window_state.h" |
| @@ -38,7 +39,6 @@ |
| #include "ash/shell.h" |
| #include "ash/touch/touch_hud_debug.h" |
| #include "ash/utility/screenshot_controller.h" |
| -#include "ash/wallpaper/wallpaper_controller.h" |
| #include "ash/wm/power_button_controller.h" |
| #include "ash/wm/window_state_aura.h" |
| #include "ash/wm/window_util.h" |
| @@ -246,7 +246,7 @@ gfx::ImageSkia CreateWallpaperImage(SkColor fill, SkColor rect) { |
| void HandleToggleWallpaperMode() { |
|
James Cook
2016/09/07 21:27:05
Can this accelerator be moved to ash/common/accele
msw
2016/09/07 22:28:24
Done.
|
| static int index = 0; |
| WallpaperController* wallpaper_controller = |
| - Shell::GetInstance()->wallpaper_controller(); |
| + WmShell::Get()->wallpaper_controller(); |
| switch (++index % 4) { |
| case 0: |
| ash::WmShell::Get()->wallpaper_delegate()->InitializeWallpaper(); |