Index: ui/views/widget/tooltip_manager_aura.cc |
diff --git a/ui/views/widget/tooltip_manager_aura.cc b/ui/views/widget/tooltip_manager_aura.cc |
index 0636daea18a4d948f1762f299e5c9065b1f57fb9..9043e06b1ac75acb815cd754cd652cea72c06609 100644 |
--- a/ui/views/widget/tooltip_manager_aura.cc |
+++ b/ui/views/widget/tooltip_manager_aura.cc |
@@ -30,7 +30,8 @@ gfx::Font TooltipManager::GetDefaultFont() { |
// static |
int TooltipManager::GetMaxWidth(int x, int y) { |
gfx::Rect monitor_bounds = |
- gfx::Screen::GetDisplayNearestPoint(gfx::Point(x, y)).bounds(); |
+ gfx::Screen::GetDisplayNearestPoint( |
+ gfx::Screen::BadTwoWorldsContext(), gfx::Point(x, y)).bounds(); |
return (monitor_bounds.width() + 1) / 2; |
} |