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

Unified Diff: chrome/browser/renderer_context_menu/render_view_context_menu.cc

Issue 1406743002: Switch cases that returns same value should use fall through. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. Created 5 years, 2 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: chrome/browser/renderer_context_menu/render_view_context_menu.cc
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.cc b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
index cf6bdd7603d90145e2ae86e68ff6650843cdffad..c865f4b8a5bacead60c86ba0b278d799b5b2eb56 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -1393,14 +1393,8 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) const {
#endif
case IDC_SPELLCHECK_MENU:
- return true;
-
case IDC_CONTENT_CONTEXT_OPENLINKWITH:
- return true;
-
case IDC_CONTENT_CONTEXT_PROTOCOL_HANDLER_SETTINGS:
- return true;
-
case IDC_CONTENT_CONTEXT_FORCESAVEPASSWORD:
return true;

Powered by Google App Engine
This is Rietveld 408576698