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

Unified Diff: ash/common/accelerators/debug_commands.cc

Issue 2738133003: Promotes a handful of members from WmShell to Shell (Closed)
Patch Set: merge Created 3 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
« no previous file with comments | « ash/common/accelerators/accelerator_controller.cc ('k') | ash/common/devtools/ash_devtools_dom_agent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/accelerators/debug_commands.cc
diff --git a/ash/common/accelerators/debug_commands.cc b/ash/common/accelerators/debug_commands.cc
index c84d84f82dabb837e1fc430ff2ac151cb54ad368..58633fba0427fbc3b3ebbf09cf632d3ed7ca25c0 100644
--- a/ash/common/accelerators/debug_commands.cc
+++ b/ash/common/accelerators/debug_commands.cc
@@ -15,6 +15,7 @@
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/root_window_controller.h"
+#include "ash/shell.h"
#include "ash/wm/window_properties.h"
#include "base/command_line.h"
#include "base/metrics/user_metrics.h"
@@ -103,7 +104,7 @@ gfx::ImageSkia CreateWallpaperImage(SkColor fill, SkColor rect) {
void HandleToggleWallpaperMode() {
static int index = 0;
WallpaperController* wallpaper_controller =
- WmShell::Get()->wallpaper_controller();
+ Shell::GetInstance()->wallpaper_controller();
switch (++index % 4) {
case 0:
ash::WmShell::Get()->wallpaper_delegate()->InitializeWallpaper();
@@ -187,7 +188,7 @@ void PerformDebugActionIfEnabled(AcceleratorAction action) {
HandlePrintWindowHierarchy();
break;
case DEBUG_SHOW_TOAST:
- WmShell::Get()->toast_manager()->Show(
+ Shell::GetInstance()->toast_manager()->Show(
ToastData("id", base::ASCIIToUTF16("Toast"), 5000 /* duration_ms */,
base::ASCIIToUTF16("Dismiss")));
break;
« no previous file with comments | « ash/common/accelerators/accelerator_controller.cc ('k') | ash/common/devtools/ash_devtools_dom_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698