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

Issue 453993002: IsCommandIdEnabled should not fall though if the base did handle the command id (Closed)

Created:
6 years, 4 months ago by oshima
Modified:
6 years, 4 months ago
Reviewers:
Avi (use Gerrit), sky
CC:
chromium-reviews, darin-cc_chromium.org, jam
Project:
chromium
Visibility:
Public.

Description

IsCommandIdEnabled should not fall though if the base did handle the command id. I missed that RVContextMenu::IsCommandIdEnabled has NOTREACHED() and my refactoring was causing DCHECK failure. I'll refactor a bit more to make each group modular when lazyboy@ is back. BUG=401926 TEST=covered by RenderViewContextMenuTest.IsCustomCommandIdEnabled Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289142

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -12 lines) Patch
M athena/content/render_view_context_menu_impl.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M components/renderer_context_menu/render_view_context_menu_base.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M components/renderer_context_menu/render_view_context_menu_base.cc View 1 2 1 chunk +13 lines, -7 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
oshima
6 years, 4 months ago (2014-08-08 15:13:02 UTC) #1
sky
How about a test case too? https://codereview.chromium.org/453993002/diff/1/components/renderer_context_menu/render_view_context_menu_base.h File components/renderer_context_menu/render_view_context_menu_base.h (right): https://codereview.chromium.org/453993002/diff/1/components/renderer_context_menu/render_view_context_menu_base.h#newcode83 components/renderer_context_menu/render_view_context_menu_base.h:83: bool GetCommandIdEnabled(int command_id, ...
6 years, 4 months ago (2014-08-08 16:36:23 UTC) #2
oshima
uploaded new patch. PTAL. https://codereview.chromium.org/453993002/diff/1/components/renderer_context_menu/render_view_context_menu_base.h File components/renderer_context_menu/render_view_context_menu_base.h (right): https://codereview.chromium.org/453993002/diff/1/components/renderer_context_menu/render_view_context_menu_base.h#newcode83 components/renderer_context_menu/render_view_context_menu_base.h:83: bool GetCommandIdEnabled(int command_id, bool* enabled) ...
6 years, 4 months ago (2014-08-08 17:14:17 UTC) #3
sky
https://codereview.chromium.org/453993002/diff/20001/components/renderer_context_menu/render_view_context_menu_base.h File components/renderer_context_menu/render_view_context_menu_base.h (right): https://codereview.chromium.org/453993002/diff/20001/components/renderer_context_menu/render_view_context_menu_base.h#newcode84 components/renderer_context_menu/render_view_context_menu_base.h:84: bool GetCommandIdEnabled(int command_id, bool* enabled) const; Were you going ...
6 years, 4 months ago (2014-08-08 19:15:25 UTC) #4
oshima
+avi for owner's review. https://codereview.chromium.org/453993002/diff/20001/components/renderer_context_menu/render_view_context_menu_base.h File components/renderer_context_menu/render_view_context_menu_base.h (right): https://codereview.chromium.org/453993002/diff/20001/components/renderer_context_menu/render_view_context_menu_base.h#newcode84 components/renderer_context_menu/render_view_context_menu_base.h:84: bool GetCommandIdEnabled(int command_id, bool* enabled) ...
6 years, 4 months ago (2014-08-08 20:42:40 UTC) #5
Avi (use Gerrit)
lgtm https://codereview.chromium.org/453993002/diff/40001/components/renderer_context_menu/render_view_context_menu_base.h File components/renderer_context_menu/render_view_context_menu_base.h (right): https://codereview.chromium.org/453993002/diff/40001/components/renderer_context_menu/render_view_context_menu_base.h#newcode83 components/renderer_context_menu/render_view_context_menu_base.h:83: // if the command isenabled. s/isenabled/is enabled/
6 years, 4 months ago (2014-08-08 20:57:01 UTC) #6
oshima
https://codereview.chromium.org/453993002/diff/40001/components/renderer_context_menu/render_view_context_menu_base.h File components/renderer_context_menu/render_view_context_menu_base.h (right): https://codereview.chromium.org/453993002/diff/40001/components/renderer_context_menu/render_view_context_menu_base.h#newcode83 components/renderer_context_menu/render_view_context_menu_base.h:83: // if the command isenabled. On 2014/08/08 20:57:01, Avi ...
6 years, 4 months ago (2014-08-08 21:03:20 UTC) #7
sky
LGTM
6 years, 4 months ago (2014-08-08 21:11:54 UTC) #8
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 4 months ago (2014-08-08 21:21:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/453993002/40001
6 years, 4 months ago (2014-08-08 21:23:23 UTC) #10
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 4 months ago (2014-08-08 22:03:44 UTC) #11
oshima
The CQ bit was unchecked by oshima@chromium.org
6 years, 4 months ago (2014-08-08 22:03:48 UTC) #12
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 4 months ago (2014-08-09 04:41:08 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/453993002/60001
6 years, 4 months ago (2014-08-09 04:43:36 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-09 10:52:58 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-09 10:55:31 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/5103)
6 years, 4 months ago (2014-08-09 10:55:32 UTC) #17
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 4 months ago (2014-08-09 15:30:14 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/453993002/60001
6 years, 4 months ago (2014-08-09 15:31:10 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-09 15:34:02 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-09 15:36:53 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/5122)
6 years, 4 months ago (2014-08-09 15:36:54 UTC) #22
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 4 months ago (2014-08-12 02:02:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/453993002/60001
6 years, 4 months ago (2014-08-12 02:10:19 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-12 02:16:49 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-12 02:23:29 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/5701)
6 years, 4 months ago (2014-08-12 02:23:30 UTC) #27
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 4 months ago (2014-08-12 15:39:23 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/453993002/60001
6 years, 4 months ago (2014-08-12 15:41:00 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-12 15:50:41 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-12 15:59:30 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/5928)
6 years, 4 months ago (2014-08-12 15:59:31 UTC) #32
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 4 months ago (2014-08-12 18:26:10 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/453993002/80001
6 years, 4 months ago (2014-08-12 18:27:12 UTC) #34
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-12 23:57:07 UTC) #35
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 01:17:07 UTC) #36
Message was sent while issue was closed.
Change committed as 289142

Powered by Google App Engine
This is Rietveld 408576698