Chromium Code Reviews| Index: ash/common/accelerators/debug_commands.cc |
| diff --git a/ash/common/accelerators/debug_commands.cc b/ash/common/accelerators/debug_commands.cc |
| index fc5270b015784f5002af85dd09cfb479a2b87dbf..e5869e4565b849655a615ea4fc520fc9f0cd19fa 100644 |
| --- a/ash/common/accelerators/debug_commands.cc |
| +++ b/ash/common/accelerators/debug_commands.cc |
| @@ -128,7 +128,9 @@ void HandleToggleTouchpad() { |
| void HandleToggleTouchscreen() { |
| base::RecordAction(base::UserMetricsAction("Accel_Toggle_Touchscreen")); |
| - ash::WmShell::Get()->delegate()->ToggleTouchscreen(); |
| + ShellDelegate* delegate = WmShell::Get()->delegate(); |
| + const bool touch_screen_status = delegate->IsTouchscreenEnabled(); |
| + delegate->SetTouchscreenEnabled(!touch_screen_status); |
|
Daniel Erat
2016/11/30 22:58:07
nit: i'd just inline this, e.g.
delegate->SetTo
Qiang(Joe) Xu
2016/12/02 17:42:51
Done.
|
| } |
| void HandleToggleTouchView() { |