| Index: ash/wm/frame_painter.cc
|
| diff --git a/ash/wm/frame_painter.cc b/ash/wm/frame_painter.cc
|
| index 12d74dce820876d993712cc100e803e931561301..2710f69aaf5fb6360c158ffb03493dc9f15bcedc 100644
|
| --- a/ash/wm/frame_painter.cc
|
| +++ b/ash/wm/frame_painter.cc
|
| @@ -674,7 +674,7 @@ int FramePainter::AdjustFrameHitCodeForMaximizedModes(int hit_code) {
|
| // be active.
|
| const gfx::Rect& bounds = frame_->GetWindowBoundsInScreen();
|
| const gfx::Rect& screen =
|
| - gfx::Screen::GetDisplayMatching(bounds).work_area();
|
| + Shell::GetAshScreen()->GetDisplayMatching(bounds).work_area();
|
| if (bounds.y() == screen.y() && bounds.bottom() == screen.bottom()) {
|
| // The window is probably either left or right maximized.
|
| if (bounds.x() == screen.x()) {
|
|
|