|
|
Created:
6 years, 4 months ago by oshima Modified:
6 years, 4 months ago CC:
chromium-reviews, darin-cc_chromium.org, jam Base URL:
svn://svn.chromium.org/chrome/trunk/src Project:
chromium Visibility:
Public. |
DescriptionIsCommandIdEnabled 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 #
Messages
Total messages: 36 (0 generated)
How about a test case too? https://codereview.chromium.org/453993002/diff/1/components/renderer_context_... File components/renderer_context_menu/render_view_context_menu_base.h (right): https://codereview.chromium.org/453993002/diff/1/components/renderer_context_... components/renderer_context_menu/render_view_context_menu_base.h:83: bool GetCommandIdEnabled(int command_id, bool* enabled) const; The description you have here and the name is mildly confusing. How about: // Returns true if the specified command id is known and valid for this menu. If // the command is known |enabled| is set to indicate if the command is enabled. bool IsCommandIdKnown(int command_id, bool* enabled);
uploaded new patch. PTAL. https://codereview.chromium.org/453993002/diff/1/components/renderer_context_... File components/renderer_context_menu/render_view_context_menu_base.h (right): https://codereview.chromium.org/453993002/diff/1/components/renderer_context_... components/renderer_context_menu/render_view_context_menu_base.h:83: bool GetCommandIdEnabled(int command_id, bool* enabled) const; On 2014/08/08 16:36:23, sky wrote: > The description you have here and the name is mildly confusing. How about: > > // Returns true if the specified command id is known and valid for this menu. If > // the command is known |enabled| is set to indicate if the command is enabled. > bool IsCommandIdKnown(int command_id, bool* enabled); Done.
https://codereview.chromium.org/453993002/diff/20001/components/renderer_cont... File components/renderer_context_menu/render_view_context_menu_base.h (right): https://codereview.chromium.org/453993002/diff/20001/components/renderer_cont... components/renderer_context_menu/render_view_context_menu_base.h:84: bool GetCommandIdEnabled(int command_id, bool* enabled) const; Were you going to rename this to IsCommandIdKnown as I suggested?
+avi for owner's review. https://codereview.chromium.org/453993002/diff/20001/components/renderer_cont... File components/renderer_context_menu/render_view_context_menu_base.h (right): https://codereview.chromium.org/453993002/diff/20001/components/renderer_cont... components/renderer_context_menu/render_view_context_menu_base.h:84: bool GetCommandIdEnabled(int command_id, bool* enabled) const; On 2014/08/08 19:15:25, sky wrote: > Were you going to rename this to IsCommandIdKnown as I suggested? oops, I missed that part. Done.
lgtm https://codereview.chromium.org/453993002/diff/40001/components/renderer_cont... File components/renderer_context_menu/render_view_context_menu_base.h (right): https://codereview.chromium.org/453993002/diff/40001/components/renderer_cont... components/renderer_context_menu/render_view_context_menu_base.h:83: // if the command isenabled. s/isenabled/is enabled/
https://codereview.chromium.org/453993002/diff/40001/components/renderer_cont... File components/renderer_context_menu/render_view_context_menu_base.h (right): https://codereview.chromium.org/453993002/diff/40001/components/renderer_cont... components/renderer_context_menu/render_view_context_menu_base.h:83: // if the command isenabled. On 2014/08/08 20:57:01, Avi wrote: > s/isenabled/is enabled/ Done.
LGTM
The CQ bit was checked by oshima@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/453993002/40001
The CQ bit was checked by oshima@chromium.org
The CQ bit was unchecked by oshima@chromium.org
The CQ bit was checked by oshima@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/453993002/60001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
The CQ bit was checked by oshima@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/453993002/60001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
The CQ bit was checked by oshima@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/453993002/60001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
The CQ bit was checked by oshima@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/453993002/60001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
The CQ bit was checked by oshima@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/453993002/80001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel/...)
Message was sent while issue was closed.
Change committed as 289142 |