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

Issue 597783002: Make the chevron menu button responsible for legacy overflow menu logic (Closed)

Created:
6 years, 3 months ago by Devlin
Modified:
6 years, 2 months ago
Reviewers:
Finnur, Peter Kasting
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make the chevron menu button responsible for legacy overflow menu logic Move the ChevronMenuButton class into its own file, and move the logic to show the legacy (drop-down) extension action overflow menu from the BrowserActionsContainer into there. This is mainly because: 1. We'll eventually be getting rid of this legacy behavior, and this way, the removal is all concentrated in one area (ChevronMenuButton). 2. BrowserActionsContainer is already doing a ton (since it has both new overflow and normal logic). It doesn't need this, too. As a bonus, refactored the lifetime of the overflow menu to be more deterministic, and got rid of the back-and-forth between it and the BrowserActionsContainer. And all with a negative line count! Woohoo! BUG=417085 Committed: https://crrev.com/4efc003eb10aba8c8189d831ec8825eb022c5b2c Cr-Commit-Position: refs/heads/master@{#297240}

Patch Set 1 : Original filenames #

Total comments: 13

Patch Set 2 : Changed filenames #

Total comments: 3

Patch Set 3 : Finnur's and Peter's #

Patch Set 4 : Latest master + comment #

Total comments: 2

Patch Set 5 : Fix scoped_ptr #

Patch Set 6 : Latest master for CQ #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+520 lines, -539 lines) Patch
D chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.h View 1 1 chunk +0 lines, -133 lines 0 comments Download
D chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc View 1 1 chunk +0 lines, -272 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.h View 1 2 3 4 7 chunks +2 lines, -31 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 2 3 4 5 6 13 chunks +10 lines, -101 lines 0 comments Download
A chrome/browser/ui/views/toolbar/chevron_menu_button.h View 1 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/toolbar/chevron_menu_button.cc View 1 2 1 chunk +442 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
Devlin
Finnur and Peter, mind taking a look? https://codereview.chromium.org/597783002/diff/80001/chrome/browser/ui/views/toolbar/chevron_menu_button.cc File chrome/browser/ui/views/toolbar/chevron_menu_button.cc (right): https://codereview.chromium.org/597783002/diff/80001/chrome/browser/ui/views/toolbar/chevron_menu_button.cc#newcode1 chrome/browser/ui/views/toolbar/chevron_menu_button.cc:1: // Copyright ...
6 years, 3 months ago (2014-09-24 18:39:49 UTC) #5
Peter Kasting
I didn't do a super-detailed review. https://codereview.chromium.org/597783002/diff/60001/chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc File chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc (right): https://codereview.chromium.org/597783002/diff/60001/chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc#newcode83 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc:83: // Overridden from ...
6 years, 3 months ago (2014-09-25 01:06:43 UTC) #6
Finnur
Peter beat me to all of my comments, except one (see below). LGTM, with Peter's ...
6 years, 2 months ago (2014-09-25 09:58:49 UTC) #7
Finnur
And by the way... re-factoring code before deletion? Seriously, I need to know what you ...
6 years, 2 months ago (2014-09-25 10:00:52 UTC) #8
Devlin
https://codereview.chromium.org/597783002/diff/60001/chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc File chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc (right): https://codereview.chromium.org/597783002/diff/60001/chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc#newcode83 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc:83: // Overridden from views::MenuDelegate: On 2014/09/25 01:06:43, Peter Kasting ...
6 years, 2 months ago (2014-09-25 15:56:50 UTC) #9
Devlin
On 2014/09/25 10:00:52, Finnur wrote: > And by the way... re-factoring code before deletion? This ...
6 years, 2 months ago (2014-09-25 16:00:37 UTC) #10
Peter Kasting
Finnur's sign off is sufficient to land this. https://codereview.chromium.org/597783002/diff/60001/chrome/browser/ui/views/toolbar/browser_actions_container.cc File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): https://codereview.chromium.org/597783002/diff/60001/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode128 chrome/browser/ui/views/toolbar/browser_actions_container.cc:128: chevron_->set_owned_by_client(); ...
6 years, 2 months ago (2014-09-25 19:06:18 UTC) #11
Devlin
I think I actually do need your stamp on this Peter (for c/b/ui/views/toolbar/*). Thanks! https://codereview.chromium.org/597783002/diff/60001/chrome/browser/ui/views/toolbar/browser_actions_container.cc ...
6 years, 2 months ago (2014-09-25 20:04:10 UTC) #12
Peter Kasting
LGTM once you fix the below. https://codereview.chromium.org/597783002/diff/120001/chrome/browser/ui/views/toolbar/browser_actions_container.cc File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): https://codereview.chromium.org/597783002/diff/120001/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode130 chrome/browser/ui/views/toolbar/browser_actions_container.cc:130: chevron_.reset(new ChevronMenuButton(this)); This ...
6 years, 2 months ago (2014-09-25 20:42:41 UTC) #13
Devlin
https://codereview.chromium.org/597783002/diff/120001/chrome/browser/ui/views/toolbar/browser_actions_container.cc File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): https://codereview.chromium.org/597783002/diff/120001/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode130 chrome/browser/ui/views/toolbar/browser_actions_container.cc:130: chevron_.reset(new ChevronMenuButton(this)); On 2014/09/25 20:42:41, Peter Kasting wrote: > ...
6 years, 2 months ago (2014-09-25 20:47:13 UTC) #14
Devlin
On 2014/09/25 20:47:13, Devlin wrote: > https://codereview.chromium.org/597783002/diff/120001/chrome/browser/ui/views/toolbar/browser_actions_container.cc > File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): > > https://codereview.chromium.org/597783002/diff/120001/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode130 > ...
6 years, 2 months ago (2014-09-25 22:19:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/597783002/160001
6 years, 2 months ago (2014-09-29 16:20:56 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/18807)
6 years, 2 months ago (2014-09-29 17:33:47 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/597783002/180001
6 years, 2 months ago (2014-09-29 18:50:13 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:180001) as ae1f3dd7bbccbb96403a525a4740f9151da99819
6 years, 2 months ago (2014-09-29 19:47:05 UTC) #22
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 19:48:38 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4efc003eb10aba8c8189d831ec8825eb022c5b2c
Cr-Commit-Position: refs/heads/master@{#297240}

Powered by Google App Engine
This is Rietveld 408576698