Index: chrome/browser/ui/window_sizer/window_sizer_ash.cc |
diff --git a/chrome/browser/ui/window_sizer/window_sizer_ash.cc b/chrome/browser/ui/window_sizer/window_sizer_ash.cc |
index bf748fc2f1b69a57d0f85a4610bc471cba170f84..30093e6eec386d8089a80a05f355b465836adfc1 100644 |
--- a/chrome/browser/ui/window_sizer/window_sizer_ash.cc |
+++ b/chrome/browser/ui/window_sizer/window_sizer_ash.cc |
@@ -163,9 +163,8 @@ bool WindowSizer::GetBoundsOverrideAsh(const gfx::Rect& specified_bounds, |
// In case we have only one window, we move the other window fully to the |
// "other side" - making room for this new window. |
if (count == 1) { |
- gfx::Display display = |
- gfx::Screen::GetDisplayMatching( |
- top_window->GetRootWindow()->GetBoundsInScreen()); |
+ gfx::Display display = ash::Shell::GetScreen()->GetDisplayMatching( |
+ top_window->GetRootWindow()->GetBoundsInScreen()); |
if (MoveRect(work_area, other_bounds_in_screen, !move_right)) |
top_window->SetBoundsInScreen(other_bounds_in_screen, display); |
} |