Index: chrome/browser/ui/views/toolbar/browser_actions_container.cc |
diff --git a/chrome/browser/ui/views/toolbar/browser_actions_container.cc b/chrome/browser/ui/views/toolbar/browser_actions_container.cc |
index fce979e8569f67dc53847cbbeb2916a2a195742c..5a1859d071662423743881bdfd4d17e67086eb11 100644 |
--- a/chrome/browser/ui/views/toolbar/browser_actions_container.cc |
+++ b/chrome/browser/ui/views/toolbar/browser_actions_container.cc |
@@ -892,7 +892,12 @@ bool BrowserActionsContainer::ShowExtensionActionPopup( |
} |
void BrowserActionsContainer::ToolbarVisibleCountChanged() { |
+ int old_container_width = container_width_; |
SetContainerWidth(); |
+ if (old_container_width != container_width_) { |
+ SaveDesiredSizeAndAnimate(gfx::Tween::EASE_OUT, |
+ model_->GetVisibleIconCount()); |
+ } |
} |
void BrowserActionsContainer::ToolbarHighlightModeChanged( |