Changes BookmarkBarView to only create buttons as needed
commitb8c86e2bed280803ec89ae1d9f4acf9b6b29aed6
authorsky <sky@chromium.org>
Tue, 28 Oct 2014 02:18:20 +0000 (27 19:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Oct 2014 02:19:00 +0000 (28 02:19 +0000)
tree1977f9bcb678ccec6fd6f320e149ae70ff4df561
parentff08c7cc4430e6d45e7c39751199d58a54ba7296
Changes BookmarkBarView to only create buttons as needed

Previously it created a button per child of the bookmark bar node. Now
it creates only as many buttons as are needed, lazily creating more if
the size changes.

BUG=416641
TEST=covered by tests.
R=msw@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#301551}
chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
chrome/browser/ui/views/bookmarks/bookmark_bar_view.h
chrome/browser/ui/views/bookmarks/bookmark_bar_view_test_helper.h
chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc
chrome/chrome_tests.gypi