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

Issue 1107007: Extension context menu refactor (Closed)

Created:
10 years, 9 months ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
Finnur, rafaelw
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Refactor ExtensionActionContextMenuModel. - Simplify constructor - Rename to ExtensionContextMenuModel.* - Remove views/extension_action_context_menu.* BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42271

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 33

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -473 lines) Patch
D chrome/browser/extensions/extension_action_context_menu_model.h View 1 chunk +0 lines, -67 lines 0 comments Download
D chrome/browser/extensions/extension_action_context_menu_model.cc View 1 chunk +0 lines, -144 lines 0 comments Download
A + chrome/browser/extensions/extension_context_menu_model.h View 1 2 3 4 5 6 2 chunks +30 lines, -27 lines 0 comments Download
A + chrome/browser/extensions/extension_context_menu_model.cc View 1 2 3 4 5 6 5 chunks +43 lines, -47 lines 1 comment Download
M chrome/browser/gtk/browser_actions_toolbar_gtk.cc View 1 2 3 4 5 6 5 chunks +16 lines, -12 lines 0 comments Download
M chrome/browser/gtk/browser_toolbar_gtk.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.h View 1 2 3 4 5 6 6 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.cc View 1 2 3 4 5 6 5 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/views/browser_actions_container.h View 1 2 3 4 5 6 9 chunks +16 lines, -17 lines 0 comments Download
M chrome/browser/views/browser_actions_container.cc View 1 2 3 4 5 6 7 8 chunks +14 lines, -21 lines 0 comments Download
M chrome/browser/views/extensions/browser_action_overflow_menu_controller.h View 3 4 2 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/views/extensions/browser_action_overflow_menu_controller.cc View 1 2 3 4 5 6 3 chunks +11 lines, -7 lines 0 comments Download
D chrome/browser/views/extensions/extension_action_context_menu.h View 1 chunk +0 lines, -43 lines 0 comments Download
D chrome/browser/views/extensions/extension_action_context_menu.cc View 1 chunk +0 lines, -37 lines 0 comments Download
M chrome/browser/views/extensions/extension_installed_bubble.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/views/infobars/extension_infobar.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/views/infobars/extension_infobar.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/views/location_bar_view.h View 1 2 3 4 5 6 7 8 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/views/location_bar_view.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -10 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Evan Stade
This doesn't work on windows (it breaks the context menu for the browser action overflow); ...
10 years, 9 months ago (2010-03-19 00:07:57 UTC) #1
rafaelw1
Will review tonight. To address the windows issue, you should just build views on Linux. ...
10 years, 9 months ago (2010-03-19 00:42:21 UTC) #2
Evan Stade
fixed it. The context menu model was being deleted before it executed the command. Delayed ...
10 years, 9 months ago (2010-03-19 01:05:34 UTC) #3
rafaelw
lgtm on extension_(action_)context_menu_model.* and gtk/*. leaving the rest for finnur. http://codereview.chromium.org/1107007/diff/50001/41013 File chrome/browser/views/browser_actions_container.cc (right): http://codereview.chromium.org/1107007/diff/50001/41013#newcode229 ...
10 years, 9 months ago (2010-03-19 02:57:41 UTC) #4
Finnur
http://codereview.chromium.org/1107007/diff/50001/41004 File chrome/browser/extensions/extension_context_menu_model.cc (left): http://codereview.chromium.org/1107007/diff/50001/41004#oldcode70 chrome/browser/extensions/extension_context_menu_model.cc:70: return false; Are you sure this can be removed? ...
10 years, 9 months ago (2010-03-19 16:58:20 UTC) #5
Evan Stade
http://codereview.chromium.org/1107007/diff/50001/41004 File chrome/browser/extensions/extension_context_menu_model.cc (left): http://codereview.chromium.org/1107007/diff/50001/41004#oldcode70 chrome/browser/extensions/extension_context_menu_model.cc:70: return false; On 2010/03/19 16:58:20, Finnur wrote: > Are ...
10 years, 9 months ago (2010-03-19 17:32:32 UTC) #6
Finnur
http://codereview.chromium.org/1107007/diff/50001/41004 File chrome/browser/extensions/extension_context_menu_model.cc (right): http://codereview.chromium.org/1107007/diff/50001/41004#newcode62 chrome/browser/extensions/extension_context_menu_model.cc:62: void ExtensionContextMenuModel::InitCommonCommands() { Initialize does not imply that the ...
10 years, 9 months ago (2010-03-19 19:43:18 UTC) #7
Evan Stade
http://codereview.chromium.org/1107007/diff/50001/41004 File chrome/browser/extensions/extension_context_menu_model.cc (right): http://codereview.chromium.org/1107007/diff/50001/41004#newcode62 chrome/browser/extensions/extension_context_menu_model.cc:62: void ExtensionContextMenuModel::InitCommonCommands() { On 2010/03/19 19:43:19, Finnur wrote: > ...
10 years, 9 months ago (2010-03-19 21:16:38 UTC) #8
Finnur
http://codereview.chromium.org/1107007/diff/50001/41004 File chrome/browser/extensions/extension_context_menu_model.cc (right): http://codereview.chromium.org/1107007/diff/50001/41004#newcode62 chrome/browser/extensions/extension_context_menu_model.cc:62: void ExtensionContextMenuModel::InitCommonCommands() { > on the contrary, not having ...
10 years, 9 months ago (2010-03-19 21:47:22 UTC) #9
Evan Stade
http://codereview.chromium.org/1107007/diff/50001/41004 File chrome/browser/extensions/extension_context_menu_model.cc (right): http://codereview.chromium.org/1107007/diff/50001/41004#newcode62 chrome/browser/extensions/extension_context_menu_model.cc:62: void ExtensionContextMenuModel::InitCommonCommands() { > My point was: have one ...
10 years, 9 months ago (2010-03-19 22:09:30 UTC) #10
Evan Stade
ok here is another option that I think makes sense. ExtensionActionContextMenu as a subclass of ...
10 years, 9 months ago (2010-03-19 23:56:15 UTC) #11
Finnur
On 2010/03/19 23:56:15, Evan Stade wrote: > ok here is another option that I think ...
10 years, 9 months ago (2010-03-20 18:31:35 UTC) #12
Evan Stade
On 2010/03/20 18:31:35, Finnur wrote: > On 2010/03/19 23:56:15, Evan Stade wrote: > > ok ...
10 years, 9 months ago (2010-03-22 04:14:30 UTC) #13
rafaelw
http://codereview.chromium.org/1107007/diff/50001/41003 File chrome/browser/extensions/extension_context_menu_model.h (right): http://codereview.chromium.org/1107007/diff/50001/41003#newcode27 chrome/browser/extensions/extension_context_menu_model.h:27: virtual void ShowPopupForDevToolsWindow(ExtensionAction* action) = 0; Fine by me. ...
10 years, 9 months ago (2010-03-22 18:04:04 UTC) #14
Evan Stade
new patch uploaded. I tested what happens when the extension crashes while the context menu ...
10 years, 9 months ago (2010-03-22 20:55:00 UTC) #15
Finnur
You have some try server issues, but apart from that this LGTM, with one nit. ...
10 years, 9 months ago (2010-03-22 21:10:09 UTC) #16
Finnur
10 years, 9 months ago (2010-03-22 21:10:59 UTC) #17
And thanks for the cleanup and patience too. :)

On 2010/03/22 21:10:09, Finnur wrote:
> You have some try server issues, but apart from that this LGTM, with one nit.
> 
> > This patch neither solves nor causes this problem so 
> > I'd like to tackle that as a separate issue.
> 
> Sounds very reasonable.
> 
> http://codereview.chromium.org/1107007/diff/7004/71002
> File chrome/browser/extensions/extension_context_menu_model.cc (right):
> 
> http://codereview.chromium.org/1107007/diff/7004/71002#newcode34
> chrome/browser/extensions/extension_context_menu_model.cc:34: :
> ALLOW_THIS_IN_INITIALIZER_LIST(SimpleMenuModel(this)),
> nit: I believe you need 4 cols before the colon in the initializer list.

Powered by Google App Engine
This is Rietveld 408576698