| Index: chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
|
| index 3f97173ebd586de502c3e41e5576aec843711d5f..dcd0a8fca9005dc0970cbbe640f52212aae61dc2 100644
|
| --- a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
|
| @@ -658,9 +658,10 @@ void ToolbarActionsBarBridge::ShowExtensionMessageBubble(
|
| // Cocoa goes a little crazy if we try and change animations while adjusting
|
| // child frames (i.e., the buttons). If the toolbar is already animating,
|
| // just jump to the new frame. (This typically only happens if someone is
|
| - // "spamming" a button to add/remove an action.)
|
| + // "spamming" a button to add/remove an action.) If the window isn't visible
|
| + // (for example it's in the process of being created), don't bother animating.
|
| BOOL animate = !toolbarActionsBar_->suppress_animation() &&
|
| - ![containerView_ isAnimating];
|
| + ![containerView_ isAnimating] && [[containerView_ window] isVisible];
|
| [self updateContainerVisibility];
|
| [containerView_ resizeToWidth:width
|
| animate:animate];
|
|
|