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

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

Issue 661493004: Add infrastructure for Chrome Actions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/extension_toolbar_menu_view.cc
diff --git a/chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc b/chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc
index e3abf290be88f673a3f741864ec63b832aa7470f..cd97e5931fb2309fb4e87405b535415dd38d545a 100644
--- a/chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc
+++ b/chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc
@@ -58,7 +58,8 @@ ExtensionToolbarMenuView::~ExtensionToolbarMenuView() {
bool ExtensionToolbarMenuView::ShouldShow() {
return wrench_menu_->for_drop() ||
- container_->VisibleBrowserActionsAfterAnimation();
+ container_->VisibleBrowserActionsAfterAnimation() ||
+ container_->num_chrome_actions() != 0u;
}
gfx::Size ExtensionToolbarMenuView::GetPreferredSize() const {

Powered by Google App Engine
This is Rietveld 408576698