Chromium Code Reviews| Index: ash/common/wm/maximize_mode/maximize_mode_event_handler.cc |
| diff --git a/ash/common/wm/maximize_mode/maximize_mode_event_handler.cc b/ash/common/wm/maximize_mode/maximize_mode_event_handler.cc |
| index 55838ef198e4e2ed75b0ea48e76ab0f6303572d8..12279b53c48f9fbf34ab473cb4fd24a7094aa2f0 100644 |
| --- a/ash/common/wm/maximize_mode/maximize_mode_event_handler.cc |
| +++ b/ash/common/wm/maximize_mode/maximize_mode_event_handler.cc |
| @@ -11,6 +11,7 @@ |
| #include "ash/common/wm_shell.h" |
|
James Cook
2017/03/31 19:29:52
still needed?
sky
2017/03/31 20:15:14
Done.
|
| #include "ash/common/wm_window.h" |
| #include "ash/shell.h" |
| +#include "ash/wm/window_util.h" |
| #include "ui/events/event.h" |
| namespace ash { |
| @@ -39,7 +40,7 @@ bool MaximizeModeEventHandler::ToggleFullscreen(const ui::TouchEvent& event) { |
| } |
| // Find the active window (from the primary screen) to un-fullscreen. |
| - WmWindow* window = WmShell::Get()->GetActiveWindow(); |
| + WmWindow* window = WmWindow::Get(GetActiveWindow()); |
| if (!window) |
| return false; |