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

Issue 573893003: Avoid unnecessary visibility changes to BookmarkBarView (Closed)

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

Description

Avoid unnecessary visibility changes to BookmarkBarView I came across this while investigating slowness. Without this we would end up unnecessarily toggling visibility a couple of times. While not the end of the world, toggling visibility for the bookmarkbar can take a while (mostly because it can end up containing a ton of views). BUG=none TEST=covered by test now R=jamescook@chromium.org Committed: https://crrev.com/b32ecb13b8a14b08c5bfd74748e7f1f21798e134 Cr-Commit-Position: refs/heads/master@{#295116}

Patch Set 1 #

Patch Set 2 : random cleanup #

Patch Set 3 : merge 2 trunk #

Total comments: 6

Patch Set 4 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -12 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.h View 1 6 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 5 chunks +20 lines, -2 lines 0 comments Download
A chrome/browser/ui/views/bookmarks/bookmark_bar_view_observer.h View 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_browsertest.cc View 1 2 3 2 chunks +73 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
sky
6 years, 3 months ago (2014-09-15 22:40:11 UTC) #1
James Cook
LGTM https://codereview.chromium.org/573893003/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h File chrome/browser/ui/views/bookmarks/bookmark_bar_view.h (right): https://codereview.chromium.org/573893003/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h#newcode457 chrome/browser/ui/views/bookmarks/bookmark_bar_view.h:457: base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; Hooray for WeakPtrFactory cleanup! https://codereview.chromium.org/573893003/diff/40001/chrome/browser/ui/views/frame/browser_view_browsertest.cc File ...
6 years, 3 months ago (2014-09-16 15:52:31 UTC) #2
sky
https://codereview.chromium.org/573893003/diff/40001/chrome/browser/ui/views/frame/browser_view_browsertest.cc File chrome/browser/ui/views/frame/browser_view_browsertest.cc (right): https://codereview.chromium.org/573893003/diff/40001/chrome/browser/ui/views/frame/browser_view_browsertest.cc#newcode195 chrome/browser/ui/views/frame/browser_view_browsertest.cc:195: // Verifies we don't unnecessarily change the visibility of ...
6 years, 3 months ago (2014-09-16 16:22:08 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/573893003/60001
6 years, 3 months ago (2014-09-16 16:23:39 UTC) #5
commit-bot: I haz the power
Committed patchset #4 (id:60001) as eb70159048d402088f7a0a9b5c3fb04450598b47
6 years, 3 months ago (2014-09-16 19:06:36 UTC) #6
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 19:07:42 UTC) #7
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b32ecb13b8a14b08c5bfd74748e7f1f21798e134
Cr-Commit-Position: refs/heads/master@{#295116}

Powered by Google App Engine
This is Rietveld 408576698