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

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

Issue 202993002: Fix "unreachable code" warnings (MSVC warning 4702) in chrome/browser/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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/spelling_menu_observer.cc
===================================================================
--- chrome/browser/renderer_context_menu/spelling_menu_observer.cc (revision 256983)
+++ chrome/browser/renderer_context_menu/spelling_menu_observer.cc (working copy)
@@ -201,7 +201,6 @@
default:
return false;
}
- return false;
}
bool SpellingMenuObserver::IsCommandIdChecked(int command_id) {
@@ -210,7 +209,7 @@
if (command_id == IDC_CONTENT_CONTEXT_SPELLING_TOGGLE)
return integrate_spelling_service_.GetValue() &&
!proxy_->GetProfile()->IsOffTheRecord();
- else if (command_id == IDC_CONTENT_CONTEXT_AUTOCORRECT_SPELLING_TOGGLE)
+ if (command_id == IDC_CONTENT_CONTEXT_AUTOCORRECT_SPELLING_TOGGLE)
return autocorrect_spelling_.GetValue() &&
!proxy_->GetProfile()->IsOffTheRecord();
return false;
@@ -244,7 +243,6 @@
default:
return false;
}
- return false;
}
void SpellingMenuObserver::ExecuteCommand(int command_id) {

Powered by Google App Engine
This is Rietveld 408576698