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

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

Issue 10695003: Disable using the Spelling service when spellchecking text on Mac. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/spellchecker/spelling_service_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellchecker/spelling_service_client.cc
===================================================================
--- chrome/browser/spellchecker/spelling_service_client.cc (revision 144326)
+++ chrome/browser/spellchecker/spelling_service_client.cc (working copy)
@@ -124,7 +124,11 @@
// by the suggest service. That is, it is not useful to use the suggest
// service when this client can use the spellcheck service.
std::string locale = pref->GetString(prefs::kSpellCheckDictionary);
+#if defined(OS_MACOSX)
+ bool spellcheck_available = locale.empty();
+#else
bool spellcheck_available = locale.empty() || !locale.compare(0, 2, "en");
+#endif
return type == SUGGEST ? !spellcheck_available : spellcheck_available;
}
« no previous file with comments | « no previous file | chrome/browser/spellchecker/spelling_service_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698