Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3347)

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_view.cc

Issue 419023002: Move ShowPopup logic from BrowserActionsContainer to BrowserActionView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698