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

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: 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
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 9c3d9f58c13bbaa4436184cdab4624aee1840886..c2afcbccc8a918095048b6bcd2159708fa44de2b 100644
--- a/athena/content/render_view_context_menu_impl.cc
+++ b/athena/content/render_view_context_menu_impl.cc
@@ -100,8 +100,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::GetCommandIdEnabled(command_id, &enabled))
+ return enabled;
+ }
switch (command_id) {
case CMD_BACK:
return source_web_contents_->GetController().CanGoBack();

Powered by Google App Engine
This is Rietveld 408576698