Index: chrome/browser/ui/views/fullscreen_exit_bubble_views.cc |
diff --git a/chrome/browser/ui/views/fullscreen_exit_bubble_views.cc b/chrome/browser/ui/views/fullscreen_exit_bubble_views.cc |
index 8d34e70b33f48ffa0a99ada6fee6871d23869072..45ce38544b24c5d03c168a3414bf4617440feb69 100644 |
--- a/chrome/browser/ui/views/fullscreen_exit_bubble_views.cc |
+++ b/chrome/browser/ui/views/fullscreen_exit_bubble_views.cc |
@@ -340,7 +340,7 @@ gfx::Rect FullscreenExitBubbleViews::GetPopupRect( |
gfx::Size size(view_->GetPreferredSize()); |
// NOTE: don't use the bounds of the root_view_. On linux changing window |
// size is async. Instead we use the size of the screen. |
- gfx::Rect screen_bounds = gfx::Screen::GetMonitorNearestWindow( |
+ gfx::Rect screen_bounds = gfx::Screen::GetDisplayNearestWindow( |
root_view_->GetWidget()->GetNativeView()).bounds(); |
gfx::Point origin(screen_bounds.x() + |
(screen_bounds.width() - size.width()) / 2, |