Index: ash/wm/workspace/workspace_event_handler.cc |
diff --git a/ash/wm/workspace/workspace_event_handler.cc b/ash/wm/workspace/workspace_event_handler.cc |
index 7504a1146581704fcb463ad6f5e503c035ffe7ad..f0db7261befd6a417c8d1c72356f6e8e6a986dee 100644 |
--- a/ash/wm/workspace/workspace_event_handler.cc |
+++ b/ash/wm/workspace/workspace_event_handler.cc |
@@ -5,6 +5,7 @@ |
#include "ash/wm/workspace/workspace_event_handler.h" |
#include "ash/screen_ash.h" |
+#include "ash/shell.h" |
#include "ash/wm/property_util.h" |
#include "ash/wm/window_util.h" |
#include "ash/wm/workspace/workspace_window_resizer.h" |
@@ -141,7 +142,7 @@ void WorkspaceEventHandler::HandleVerticalResizeDoubleClick( |
int component = |
target->delegate()->GetNonClientComponent(event->location()); |
gfx::Rect work_area = |
- gfx::Screen::GetDisplayNearestWindow(target).work_area(); |
+ Shell::GetAshScreen()->GetDisplayNearestWindow(target).work_area(); |
const gfx::Rect* restore_bounds = |
target->GetProperty(aura::client::kRestoreBoundsKey); |
if (component == HTBOTTOM || component == HTTOP) { |