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

Unified Diff: athena/content/render_view_context_menu_impl.cc

Issue 453993002: IsCommandIdEnabled should not fall though if the base did handle the command id (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/renderer_context_menu/render_view_context_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/render_view_context_menu_impl.cc
diff --git a/athena/content/render_view_context_menu_impl.cc b/athena/content/render_view_context_menu_impl.cc
index 6f992e41bfee5fd2bfe2fe7aacc14859c0adb3cb..6c2f2b60a5be0d55c89d2db1905da73beeab8ea6 100644
--- a/athena/content/render_view_context_menu_impl.cc
+++ b/athena/content/render_view_context_menu_impl.cc
@@ -153,8 +153,11 @@ bool RenderViewContextMenuImpl::IsCommandIdChecked(int command_id) const {
}
bool RenderViewContextMenuImpl::IsCommandIdEnabled(int command_id) const {
- if (RenderViewContextMenuBase::IsCommandIdEnabled(command_id))
- return true;
+ {
+ bool enabled = false;
+ if (RenderViewContextMenuBase::IsCommandIdKnown(command_id, &enabled))
+ return enabled;
+ }
switch (command_id) {
// Navigation
case CMD_BACK:
« no previous file with comments | « no previous file | chrome/browser/renderer_context_menu/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698