[Extensions Toolbar Mac] Fix button animation when spamming enable/disable
commitd3cf92cac313434de99ae66f6e3e12d27ab536ef
authorrdevlin.cronin <rdevlin.cronin@chromium.org>
Thu, 8 Jan 2015 17:57:50 +0000 (8 09:57 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 8 Jan 2015 17:58:27 +0000 (8 17:58 +0000)
tree80cf21d547dd82f751e1387e056e6602fca21157
parent2cb47c8aa98c48d345b164b24b684f0696719c4d
[Extensions Toolbar Mac] Fix button animation when spamming enable/disable

Cocoa apparently gets confused when switching animation directions, and doesn't
put the view in the proper place (even though it reports that it does). If the
extension toolbar is already animating, don't animate again to avoid this
complication.

BUG=445358

Review URL: https://codereview.chromium.org/831413003

Cr-Commit-Position: refs/heads/master@{#310534}
chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm