Index: ash/wm/window_util.cc |
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc |
index 833e02c0271e1e527e49e48f1fd9c8427ced24ff..17f60344b11ddb5b957ea4dc752e34e2047fe7d7 100644 |
--- a/ash/wm/window_util.cc |
+++ b/ash/wm/window_util.cc |
@@ -94,7 +94,7 @@ void RestoreWindow(aura::Window* window) { |
} |
void CenterWindow(aura::Window* window) { |
- const gfx::Display display = gfx::Screen::GetMonitorNearestWindow(window); |
+ const gfx::Display display = gfx::Screen::GetDisplayNearestWindow(window); |
gfx::Rect center = display.work_area().Center(window->bounds().size()); |
window->SetBounds(center); |
} |