Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: ash/wm/window_state.cc

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: fixes Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()));

Powered by Google App Engine
This is Rietveld 408576698