Index: chrome/browser/ui/views/toolbar/toolbar_button.cc |
diff --git a/chrome/browser/ui/views/toolbar/toolbar_button.cc b/chrome/browser/ui/views/toolbar/toolbar_button.cc |
index c66f40eebe561ec70e9f8bab5ae07355ee34d75b..e529cf66a34dc5c48c0ac509a6fbabca5db3fb43 100644 |
--- a/chrome/browser/ui/views/toolbar/toolbar_button.cc |
+++ b/chrome/browser/ui/views/toolbar/toolbar_button.cc |
@@ -184,7 +184,7 @@ void ToolbarButton::ShowDropDownMenu(ui::MenuSourceType source_type) { |
// the menu button exists. |
gfx::NativeView view = GetWidget()->GetNativeView(); |
display::Display display = |
- display::Screen::GetScreen()->GetDisplayNearestWindow(view); |
+ display::Screen::GetScreen()->GetDisplayNearestView(view); |
int left_bound = display.bounds().x(); |
#else |
// The window might be positioned over the edge between two screens. We'll |