Index: chrome/browser/ui/ash/window_positioner.cc |
diff --git a/chrome/browser/ui/ash/window_positioner.cc b/chrome/browser/ui/ash/window_positioner.cc |
index e2e196871ee196b1d2cb9f6e94b6b2b271b9e6f7..d3be675be2e607c7b13d6c26af88caa2b7f36ff7 100644 |
--- a/chrome/browser/ui/ash/window_positioner.cc |
+++ b/chrome/browser/ui/ash/window_positioner.cc |
@@ -47,8 +47,8 @@ gfx::Rect WindowPositioner::GetPopupPosition(const gfx::Rect& old_pos) { |
// work area. |
aura::Window* window = ash::wm::GetActiveWindow(); |
const gfx::Rect work_area = window && window->IsVisible() ? |
- gfx::Screen::GetDisplayNearestWindow(window).work_area() : |
- gfx::Screen::GetPrimaryDisplay().work_area(); |
+ Shell::GetAshScreen()->GetDisplayNearestWindow(window).work_area() : |
+ Shell::GetAshScreen()->GetPrimaryDisplay().work_area(); |
// Only try to reposition the popup when it is not spanning the entire |
// screen. |
if ((old_pos.width() + popup_position_offset_from_screen_corner_x >= |