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

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

Issue 10533077: Implement a request cache and disble retrieving a sub-region. (Closed) Base URL: svn://svn.chromium.org/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/renderer/spellchecker/spellcheck_provider.h » ('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 141385)
+++ chrome/browser/spellchecker/spelling_service_client.cc (working copy)
@@ -7,6 +7,7 @@
#include "base/json/json_reader.h"
#include "base/json/string_escape.h"
#include "base/logging.h"
+#include "base/string_util.h"
#include "base/stringprintf.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
@@ -71,6 +72,8 @@
uloc_getLanguage(id, language, arraysize(language), &error);
country = uloc_getISO3Country(id);
}
+ if (type == SPELLCHECK && base::strcasecmp(language, ULOC_ENGLISH))
+ return false;
// Format the JSON request to be sent to the Spelling service.
std::string encoded_text;
« no previous file with comments | « no previous file | chrome/renderer/spellchecker/spellcheck_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698