Fix extensions flicker/disappearance when resizing window.

Bug was due to inconsistency between the calculations in
BrowserActionsContainer::GetWidthForIconCount() and
BrowserActionsContainer::WidthToIconCount().

This does not resolve the inconsistency but instead accounts for it. We
can return to fix the inconsistency but the general feeling is that we
may end up moving away from the current BrowserActionsContainer solution
and there's a lot of other code tangled with those two functions, so a
spot fix is preferred in this case.

Bug: 935216
Change-Id: Ie38a72292dbc8975dd382bb6b23bc824dfabf677
Reviewed-on: https://chromium-review.googlesource.com/c/1491141
Commit-Queue: Dana Fried <dfried@chromium.org>
Reviewed-by: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#636184}
2 files changed