Revert "Don't show top toolbar items when bottom toolbar is enabled"
This reverts commit e83d1f12. Reason for revert: https://crbug.com/857437 Essentially, as well as adding if statements to all usages of mMenuButton within the class, you need to add if statements to all other classes calling 'getMenuButton()' (and ToolbarManager.getMenuButton() transitively). Unfortunately this isn't so trivial for all the cases (eg, I'm guessing we still want to show the data saver when this feature is enabled, or the download text bubble?), so I'm reverting instead of attempting and TBRing a fix myself. Sorry! Original change's description: > Don't show top toolbar items when bottom toolbar is enabled > > Remove the top toolbar buttons (home, tab switcher, and menu buttons) > from their parent view and set them to null. Also add a bunch of > null checks since now things can be null. > > Bug: 852117 > Change-Id: I620f35f81388d1f4ac8791a9eb45576566474604 > Reviewed-on: https://chromium-review.googlesource.com/1105569 > Commit-Queue: Pedro Amaral <amaralp@chromium.org> > Reviewed-by: Ted Choc <tedchoc@chromium.org> > Cr-Commit-Position: refs/heads/master@{#570578} TBR=tedchoc@chromium.org,amaralp@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 852117 Change-Id: I2c16533f8dec11c5d11b920693157735e7438e89 Reviewed-on: https://chromium-review.googlesource.com/1124579 Commit-Queue: Peter Conn <peconn@chromium.org> Reviewed-by:Peter Conn <peconn@chromium.org> Cr-Commit-Position: refs/heads/master@{#572193}
Showing
This diff is collapsed.
Please register or sign in to comment