Chromium Code Reviews| Index: chrome/browser/ui/views/toolbar/toolbar_view.cc |
| diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.cc b/chrome/browser/ui/views/toolbar/toolbar_view.cc |
| index ae496b6aa1c0565ace60b32687ffa3c10a5df16b..8a64f132363d580cd7708c96f77797e135ba1f4d 100644 |
| --- a/chrome/browser/ui/views/toolbar/toolbar_view.cc |
| +++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc |
| @@ -338,7 +338,10 @@ void ToolbarView::ShowPageActionPopup(const extensions::Extension* extension) { |
| void ToolbarView::ShowBrowserActionPopup( |
| const extensions::Extension* extension) { |
| - browser_actions_->ShowPopup(extension, true); |
| + browser_actions_->ShowPopupForExtension( |
| + extension, |
| + true, // Grant active tab permissions. |
| + false); // Don't override the current view. |
|
Peter Kasting
2014/07/26 02:33:20
Nit: I'm not a huge fan of comments on function ar
Devlin
2014/07/29 19:07:15
I typically view them as providing a reference to
Peter Kasting
2014/07/29 19:18:01
I think those are probably slightly worse than the
|
| } |
| void ToolbarView::ShowAppMenu(bool for_drop) { |