Index: ash/wm/window_animations.cc |
diff --git a/ash/wm/window_animations.cc b/ash/wm/window_animations.cc |
index de763f64a079be57174afb7280d2c1b9d3147463..168b53d74c60950dae874908bdee577188b33acc 100644 |
--- a/ash/wm/window_animations.cc |
+++ b/ash/wm/window_animations.cc |
@@ -346,7 +346,8 @@ gfx::Rect GetMinimizeRectForWindow(aura::Window* window) { |
if (target_bounds.IsEmpty()) { |
// Assume the launcher is overflowed, zoom off to the bottom right of the |
// work area. |
- gfx::Rect work_area = gfx::Screen::GetMonitorWorkAreaNearestWindow(window); |
+ gfx::Rect work_area = |
+ gfx::Screen::GetMonitorNearestWindow(window).work_area(); |
target_bounds.SetRect(work_area.right(), work_area.bottom(), 0, 0); |
} |
return target_bounds; |