| Index: ash/wm/window_util.cc
|
| diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
|
| index 9b0da7855405922162aa09bc0193c055117fc54d..5ac2f118c072ec274cf2aab76eefc38fb08c54fc 100644
|
| --- a/ash/wm/window_util.cc
|
| +++ b/ash/wm/window_util.cc
|
| @@ -12,7 +12,7 @@
|
| #include "ui/aura/root_window.h"
|
| #include "ui/aura/window.h"
|
| #include "ui/base/ui_base_types.h"
|
| -#include "ui/gfx/monitor.h"
|
| +#include "ui/gfx/display.h"
|
| #include "ui/gfx/screen.h"
|
|
|
| namespace ash {
|
| @@ -94,8 +94,8 @@ void RestoreWindow(aura::Window* window) {
|
| }
|
|
|
| void CenterWindow(aura::Window* window) {
|
| - const gfx::Monitor monitor = gfx::Screen::GetMonitorNearestWindow(window);
|
| - gfx::Rect center = monitor.work_area().Center(window->bounds().size());
|
| + const gfx::Display display = gfx::Screen::GetMonitorNearestWindow(window);
|
| + gfx::Rect center = display.work_area().Center(window->bounds().size());
|
| window->SetBounds(center);
|
| }
|
|
|
|
|