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..90f2c6db4a8c4cc57a9cf768b47ae7a76916baee 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::GetScreen()->GetDisplayNearestWindow(target).work_area(); |
const gfx::Rect* restore_bounds = |
target->GetProperty(aura::client::kRestoreBoundsKey); |
if (component == HTBOTTOM || component == HTTOP) { |