Index: ash/wm/window_state.cc |
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc |
index 21a69d9750a58ab85405da6194db5656752ef210..26f23171b8b9848e1897e0b48207cebb051fcdc5 100644 |
--- a/ash/wm/window_state.cc |
+++ b/ash/wm/window_state.cc |
@@ -415,8 +415,10 @@ void WindowState::SetBoundsDirect(const gfx::Rect& bounds) { |
if (window_->delegate() && !IsMaximized() && !IsFullscreen()) { |
// Get the minimum usable size of the minimum size and the screen size. |
gfx::Size min_size = window_->delegate()->GetMinimumSize(); |
- min_size.SetToMin(gfx::Screen::GetScreenFor( |
- window_)->GetDisplayNearestWindow(window_).work_area().size()); |
+ min_size.SetToMin(gfx::Screen::GetScreen() |
+ ->GetDisplayNearestWindow(window_) |
+ .work_area() |
+ .size()); |
actual_new_bounds.set_width( |
std::max(min_size.width(), actual_new_bounds.width())); |