| Index: chrome/browser/ui/views/chrome_views_delegate.cc
|
| diff --git a/chrome/browser/ui/views/chrome_views_delegate.cc b/chrome/browser/ui/views/chrome_views_delegate.cc
|
| index 69c08b58b1bb99eb1b8e84ff95185f78b7042625..0242cf93dd3257e6869b60fdc35ae6a482916636 100644
|
| --- a/chrome/browser/ui/views/chrome_views_delegate.cc
|
| +++ b/chrome/browser/ui/views/chrome_views_delegate.cc
|
| @@ -195,8 +195,9 @@ void ChromeViewsDelegate::SaveWindowPlacement(const views::Widget* window,
|
| window_preferences->SetBoolean("maximized",
|
| show_state == ui::SHOW_STATE_MAXIMIZED);
|
| window_preferences->SetBoolean("docked", show_state == ui::SHOW_STATE_DOCKED);
|
| - gfx::Rect work_area(gfx::Screen::GetScreenFor(window->GetNativeView())->
|
| - GetDisplayNearestWindow(window->GetNativeView()).work_area());
|
| + gfx::Rect work_area(gfx::Screen::GetScreen()
|
| + ->GetDisplayNearestWindow(window->GetNativeView())
|
| + .work_area());
|
| window_preferences->SetInteger("work_area_left", work_area.x());
|
| window_preferences->SetInteger("work_area_top", work_area.y());
|
| window_preferences->SetInteger("work_area_right", work_area.right());
|
| @@ -237,8 +238,8 @@ bool ChromeViewsDelegate::GetSavedWindowPlacement(
|
| gfx::NativeView window = widget->GetNativeView();
|
| if (chrome::GetHostDesktopTypeForNativeView(window) ==
|
| chrome::HOST_DESKTOP_TYPE_ASH) {
|
| - gfx::Display display = gfx::Screen::GetScreenFor(window)->
|
| - GetDisplayMatching(*bounds);
|
| + gfx::Display display =
|
| + gfx::Screen::GetScreen()->GetDisplayMatching(*bounds);
|
| bounds->AdjustToFit(display.work_area());
|
| ash::wm::GetWindowState(window)->set_minimum_visibility(true);
|
| }
|
|
|