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

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

Issue 2741273002: chromeos: Promotes more from WmShell to Shell (Closed)
Patch Set: feedback 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/accelerators/exit_warning_handler.cc » ('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 58633fba0427fbc3b3ebbf09cf632d3ed7ca25c0..2712e4032749263ccd9ce1a89fe88f3d10aad348 100644
--- a/ash/common/accelerators/debug_commands.cc
+++ b/ash/common/accelerators/debug_commands.cc
@@ -107,7 +107,7 @@ void HandleToggleWallpaperMode() {
Shell::GetInstance()->wallpaper_controller();
switch (++index % 4) {
case 0:
- ash::WmShell::Get()->wallpaper_delegate()->InitializeWallpaper();
+ Shell::Get()->wallpaper_delegate()->InitializeWallpaper();
break;
case 1:
wallpaper_controller->SetWallpaperImage(
@@ -129,12 +129,12 @@ void HandleToggleWallpaperMode() {
void HandleToggleTouchpad() {
base::RecordAction(base::UserMetricsAction("Accel_Toggle_Touchpad"));
- ash::WmShell::Get()->delegate()->ToggleTouchpad();
+ Shell::Get()->shell_delegate()->ToggleTouchpad();
}
void HandleToggleTouchscreen() {
base::RecordAction(base::UserMetricsAction("Accel_Toggle_Touchscreen"));
- ShellDelegate* delegate = WmShell::Get()->delegate();
+ ShellDelegate* delegate = Shell::Get()->shell_delegate();
delegate->SetTouchscreenEnabledInPrefs(
!delegate->IsTouchscreenEnabledInPrefs(false /* use_local_state */),
false /* use_local_state */);
« no previous file with comments | « ash/common/accelerators/accelerator_controller.cc ('k') | ash/common/accelerators/exit_warning_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698