Chromium Code Reviews| Index: chrome/browser/ui/views/action_box_menu.cc |
| diff --git a/chrome/browser/ui/views/action_box_menu.cc b/chrome/browser/ui/views/action_box_menu.cc |
| index 4412d03c87188462196e16303dceef1251d5d93b..bde9e8c1746186fb760608b24947a440e306af8c 100644 |
| --- a/chrome/browser/ui/views/action_box_menu.cc |
| +++ b/chrome/browser/ui/views/action_box_menu.cc |
| @@ -40,8 +40,9 @@ void ActionBoxMenu::Init() { |
| PopulateMenu(); |
| } |
| -void ActionBoxMenu::RunMenu(views::MenuButton* menu_button) { |
| - gfx::Point screen_location; |
| +void ActionBoxMenu::RunMenu(views::MenuButton* menu_button, |
| + gfx::Point menu_offset) { |
| + gfx::Point screen_location(menu_offset); |
|
Peter Kasting
2012/09/14 22:50:53
Nit: Omit this line, you're passing by value preci
yefimt
2012/09/14 23:00:56
Done.
|
| views::View::ConvertPointToScreen(menu_button, &screen_location); |
| menu_runner_.reset(new views::MenuRunner(root_)); |
| // Ignore the result since we don't need to handle a deleted menu specially. |