| Index: ash/wm/window_util.cc
|
| diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
|
| index b4c2a4d398fb8c65fd984ff535f3f081f4c4d321..8b9dcb0202f1384848da9e17043f7c0b13a21490 100644
|
| --- a/ash/wm/window_util.cc
|
| +++ b/ash/wm/window_util.cc
|
| @@ -108,7 +108,8 @@ void ToggleMaximizedWindow(aura::Window* window) {
|
| }
|
|
|
| void CenterWindow(aura::Window* window) {
|
| - const gfx::Display display = gfx::Screen::GetDisplayNearestWindow(window);
|
| + const gfx::Display display =
|
| + Shell::GetScreen()->GetDisplayNearestWindow(window);
|
| gfx::Rect center = display.work_area().Center(window->bounds().size());
|
| window->SetBounds(center);
|
| }
|
|
|