| Index: chrome/browser/ui/views/status_bubble_views.cc
|
| diff --git a/chrome/browser/ui/views/status_bubble_views.cc b/chrome/browser/ui/views/status_bubble_views.cc
|
| index 70be5c02e3b0eacb443d40433ef724c7f5922e47..e5bde8b7ff76620ac096cbb04170de878acdafa3 100644
|
| --- a/chrome/browser/ui/views/status_bubble_views.cc
|
| +++ b/chrome/browser/ui/views/status_bubble_views.cc
|
| @@ -867,10 +867,9 @@ void StatusBubbleViews::AvoidMouse(const gfx::Point& location) {
|
|
|
| // Check if the bubble sticks out from the monitor or will obscure
|
| // download shelf.
|
| - gfx::NativeView window = base_view_->GetWidget()->GetNativeView();
|
| - gfx::Rect monitor_rect = display::Screen::GetScreen()
|
| - ->GetDisplayNearestWindow(window)
|
| - .work_area();
|
| + gfx::NativeView view = base_view_->GetWidget()->GetNativeView();
|
| + gfx::Rect monitor_rect =
|
| + display::Screen::GetScreen()->GetDisplayNearestView(view).work_area();
|
| const int bubble_bottom_y = top_left.y() + position_.y() + size_.height();
|
|
|
| if (bubble_bottom_y + offset > monitor_rect.height() ||
|
|
|