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

Unified Diff: chrome/browser/spellchecker/spelling_service_client.cc

Issue 252643004: Remove --use-spelling-suggestions flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Force suggest mode in a function. Created 6 years, 8 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/spellchecker/spelling_service_client.cc
diff --git a/chrome/browser/spellchecker/spelling_service_client.cc b/chrome/browser/spellchecker/spelling_service_client.cc
index a0506ba052f848dc40e5f30e9cc8e8e10954bf22..a74b356432f324ccf3caf3fcd64e9c496097394e 100644
--- a/chrome/browser/spellchecker/spelling_service_client.cc
+++ b/chrome/browser/spellchecker/spelling_service_client.cc
@@ -120,12 +120,6 @@ bool SpellingServiceClient::IsAvailable(
if (locale.empty())
return false;
- // If we do not have the spelling service enabled, then we are only available
- // for SUGGEST.
- const CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kUseSpellingSuggestions))
- return type == SUGGEST;
-
// Finally, if all options are available, we only enable only SUGGEST
// if SPELLCHECK is not available for our language because SPELLCHECK results
// are a superset of SUGGEST results.
« no previous file with comments | « chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698