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

Issue 2853373002: [Reland][Mac] Refactor bookmark bar controller (Closed)

Created:
3 years, 7 months ago by lgrey
Modified:
3 years, 7 months ago
CC:
chromium-reviews, tfarina, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Reland][Mac] Refactor bookmark bar controller Fixed MSan issue (https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Fchromium.memory%2FMac_ASan_64_Tests__1_%2F29660%2F%2B%2Frecipes%2Fsteps%2Fbrowser_tests%2F0%2Flogs%2FBookmarkFolderAppleScriptTest.DeleteBookmarkItems%2F0) See delta between patchsets 2 and 3 for the fix Original description: Yes, with RTL thrown in, since this is specifically designed to make it almost free. Two major things here: - The bar is no longer relaid-out directly in response to changes in view size, bookmark model etc. Instead, a new UI-direction-agnostic view model (BookmarkBarLayout) is created from the current state, and if it's different from before, it's applied to the view. - Removed a bunch of layout-related code that's no longer necessary BUG=648560 Review-Url: https://codereview.chromium.org/2751573002 Cr-Commit-Position: refs/heads/master@{#468364} Committed: https://chromium.googlesource.com/chromium/src/+/2644729cb7722a702a76cc2758d0ce372e1e6f92 patch from issue 2751573002 at patchset 180001 (http://crrev.com/2751573002#ps180001) Review-Url: https://codereview.chromium.org/2853373002 Cr-Commit-Position: refs/heads/master@{#468981} Committed: https://chromium.googlesource.com/chromium/src/+/cdde49adc3b921524027132523cb538bfa670cd4

Patch Set 1 #

Patch Set 2 : Remove change so it's visible in patch diffs #

Patch Set 3 : Correctly iterate over map while erasing from it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1228 lines, -1454 lines) Patch
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge_unittest.mm View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h View 5 chunks +68 lines, -17 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm View 2 51 chunks +666 lines, -921 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm View 22 chunks +462 lines, -467 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.h View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm View 5 chunks +19 lines, -41 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 19 (14 generated)
lgrey
PTAL :)
3 years, 7 months ago (2017-05-02 20:19:57 UTC) #12
Avi (use Gerrit)
lgtm
3 years, 7 months ago (2017-05-02 20:31:45 UTC) #13
Elly Fong-Jones
On 2017/05/02 20:31:45, Avi (ping after 24h) wrote: > lgtm lgtm :)
3 years, 7 months ago (2017-05-03 15:21:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2853373002/60001
3 years, 7 months ago (2017-05-03 15:23:50 UTC) #16
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 15:29:49 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/cdde49adc3b921524027132523cb...

Powered by Google App Engine
This is Rietveld 408576698