diff options
Diffstat (limited to 'chrome/browser/views/bookmark_menu_button.cc')
-rw-r--r-- | chrome/browser/views/bookmark_menu_button.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/chrome/browser/views/bookmark_menu_button.cc b/chrome/browser/views/bookmark_menu_button.cc index 4255ffd..988f1f0 100644 --- a/chrome/browser/views/bookmark_menu_button.cc +++ b/chrome/browser/views/bookmark_menu_button.cc @@ -133,15 +133,11 @@ void BookmarkMenuButton::RunMenu(views::View* source, views::MenuItemView::AnchorPosition anchor = views::MenuItemView::TOPRIGHT; if (UILayoutIsRightToLeft()) anchor = views::MenuItemView::TOPLEFT; - gfx::Point button_origin; - ConvertPointToScreen(this, &button_origin); - gfx::Rect menu_bounds(button_origin.x(), button_origin.y(), width(), - height()); if (for_drop) { bookmark_drop_menu_ = menu; bookmark_drop_menu_->set_observer(this); } - menu->RunMenuAt(menu_bounds, views::MenuItemView::TOPRIGHT, for_drop); + menu->RunMenuAt(this, views::MenuItemView::TOPRIGHT, for_drop); } BookmarkModel* BookmarkMenuButton::GetBookmarkModel() { |