Index: ash/wm/workspace/snap_sizer.cc |
diff --git a/ash/wm/workspace/snap_sizer.cc b/ash/wm/workspace/snap_sizer.cc |
index 9b064e7bf1fdf08844999765fa30fb163e9d54d2..158fa3a599a02ec7b860686a3d3d03c326850368 100644 |
--- a/ash/wm/workspace/snap_sizer.cc |
+++ b/ash/wm/workspace/snap_sizer.cc |
@@ -114,7 +114,7 @@ gfx::Rect SnapSizer::GetTargetBounds() const { |
bool SnapSizer::AlongEdge(int x) const { |
// TODO: need to support multi-monitor. |
- gfx::Rect area(gfx::Screen::GetMonitorAreaNearestWindow(window_)); |
+ gfx::Rect area(gfx::Screen::GetMonitorNearestWindow(window_).bounds()); |
return (x <= area.x()) || (x >= area.right() - 1); |
} |