[Mac] [Reland] On the Touch Bar, use individual back/forward buttons instead of semented control.
This relands the original change, fixing a use-after-free when BrowserWindowDefaultTouchBar outlives its profile. Original change's description: > This is a design tweak which also enables the back and forward buttons > to be placed separately. Existing customized Touch Bars which contain > the grouped item still work; see the code comment for details. > > I used Cocoa bindings for the buttons' enabled states instead of holding > pointers to them because I initially thought that the Touch Bar might allow the > group and individual buttons to coexist. Turns out no, but I kept the KVO > implementation because I like it. > > It also includes a couple of other changes that came up while writing > this patch and during code review: > > - The unit tests no longer look for a hard-coded list of items in a > specific order. Instead, they verify that BrowserWindowDefaultTouchBar > can create the items it claims to be able to create, and that no > known-valid identifiers have stopped working. > > - BrowserWindowDefaultTouchBar returns nil if it doesn't know about an > identifier, instead of returning an empty Touch Bar item. > > Bug: 937935 > Change-Id: I8cdc6347bc667b0a24fa24fe2c6a56661747ac98 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1534238 > Commit-Queue: Sidney San Martín <sdy@chromium.org> > Reviewed-by: Leonard Grey <lgrey@chromium.org> > Auto-Submit: Sidney San Martín <sdy@chromium.org> > Cr-Commit-Position: refs/heads/master@{#649899} Bug: 937935, 945772 Change-Id: I77bf9b6d14bef875f271f8fbd4468e6cdc30434e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1568846 Commit-Queue: Sidney San Martín <sdy@chromium.org> Reviewed-by:Leonard Grey <lgrey@chromium.org> Cr-Commit-Position: refs/heads/master@{#651851}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment