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 20793d9fc5e0ff082b4013cfcd6fbb4a45a30e1a..5ba445eeaa992d84e146e08c638c2ebc6848bff0 100644 |
--- a/chrome/browser/ui/views/chrome_views_delegate.cc |
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc |
@@ -106,7 +106,7 @@ void ChromeViewsDelegate::SaveWindowPlacement(const views::Widget* window, |
window_preferences->SetBoolean("docked", show_state == ui::SHOW_STATE_DOCKED); |
gfx::Rect work_area(display::Screen::GetScreen() |
- ->GetDisplayNearestWindow(window->GetNativeView()) |
+ ->GetDisplayNearestView(window->GetNativeView()) |
.work_area()); |
window_preferences->SetInteger("work_area_left", work_area.x()); |
window_preferences->SetInteger("work_area_top", work_area.y()); |