[Extensions Toolbar Mac] Properly adjust width after icon removal
commit2b26eb3ff127a64bcd1c8cf9afb2898fac0616e3
authorrdevlin.cronin <rdevlin.cronin@chromium.org>
Tue, 10 Feb 2015 18:02:19 +0000 (10 10:02 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 10 Feb 2015 18:03:02 +0000 (10 18:03 +0000)
treec1987cb5e1bebe90538af02d5065b10714dd67f9
parentc1f445911d153d2e59b6c917295c202eda4cfb91
[Extensions Toolbar Mac] Properly adjust width after icon removal

The max width for the toolbar is set when an action is removed, but the action
was still counted in the calculations (since it was still in the underlying
vector). Fix this.

BUG=454338

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

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