Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Issue 677533003: Changes BookmarkBarView to only create buttons as needed (Closed)

Created:
6 years, 2 months ago by sky
Modified:
6 years, 1 month ago
Reviewers:
msw
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/b8c86e2bed280803ec89ae1d9f4acf9b6b29aed6 Cr-Commit-Position: refs/heads/master@{#301551}

Patch Set 1 #

Patch Set 2 : merge 2 trunk #

Patch Set 3 : add null check #

Patch Set 4 : done #

Patch Set 5 : done #

Total comments: 36

Patch Set 6 : integrate feedback #

Total comments: 12

Patch Set 7 : more feedback #

Patch Set 8 : really dont join #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -43 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 5 8 chunks +48 lines, -31 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test_helper.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc View 1 2 3 4 5 5 chunks +237 lines, -9 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
sky
6 years, 1 month ago (2014-10-27 19:23:39 UTC) #1
msw
Mostly nits, but this code could be clearer, eg. explaining the GetBookmarkButtonCount return value better, ...
6 years, 1 month ago (2014-10-27 20:40:25 UTC) #2
sky
https://codereview.chromium.org/677533003/diff/80001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/677533003/diff/80001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode786 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:786: // If we have no model we're being destroyed ...
6 years, 1 month ago (2014-10-27 21:48:19 UTC) #3
msw
Just a couple minor comments. https://codereview.chromium.org/677533003/diff/80001/chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc (right): https://codereview.chromium.org/677533003/diff/80001/chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc#newcode64 chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc:64: for (int i = ...
6 years, 1 month ago (2014-10-27 22:50:19 UTC) #4
sky
https://codereview.chromium.org/677533003/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h File chrome/browser/ui/views/bookmarks/bookmark_bar_view.h (right): https://codereview.chromium.org/677533003/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h#newcode288 chrome/browser/ui/views/bookmarks/bookmark_bar_view.h:288: // On 2014/10/27 22:50:18, msw wrote: > I don't ...
6 years, 1 month ago (2014-10-27 23:00:50 UTC) #5
msw
lgtm https://codereview.chromium.org/677533003/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h File chrome/browser/ui/views/bookmarks/bookmark_bar_view.h (right): https://codereview.chromium.org/677533003/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h#newcode288 chrome/browser/ui/views/bookmarks/bookmark_bar_view.h:288: // On 2014/10/27 23:00:49, sky wrote: > On ...
6 years, 1 month ago (2014-10-27 23:06:00 UTC) #6
sky
https://codereview.chromium.org/677533003/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h File chrome/browser/ui/views/bookmarks/bookmark_bar_view.h (right): https://codereview.chromium.org/677533003/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h#newcode288 chrome/browser/ui/views/bookmarks/bookmark_bar_view.h:288: // On 2014/10/27 23:06:00, msw wrote: > On 2014/10/27 ...
6 years, 1 month ago (2014-10-27 23:13:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/677533003/140001
6 years, 1 month ago (2014-10-27 23:20:29 UTC) #9
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years, 1 month ago (2014-10-28 02:18:27 UTC) #10
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 02:19:34 UTC) #11
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b8c86e2bed280803ec89ae1d9f4acf9b6b29aed6
Cr-Commit-Position: refs/heads/master@{#301551}

Powered by Google App Engine
This is Rietveld 408576698