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

Unified Diff: chrome/browser/search/hotword_service.cc

Issue 337243003: [Hotword] Remove non-English languages due to feature getting bumped to next milestone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove debugging Created 6 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
Index: chrome/browser/search/hotword_service.cc
diff --git a/chrome/browser/search/hotword_service.cc b/chrome/browser/search/hotword_service.cc
index 7e67c647ad8d040c6e2421367063ef9a757136e7..8d1ccdf5ffb06692a7a9f3a9834caa91c4dcad49 100644
--- a/chrome/browser/search/hotword_service.cc
+++ b/chrome/browser/search/hotword_service.cc
@@ -45,9 +45,7 @@ namespace {
// Allowed languages for hotwording.
static const char* kSupportedLocales[] = {
"en",
- "de",
- "fr",
- "ru"
+ "en_us",
};
// Enum describing the state of the hotword preference.
@@ -168,7 +166,7 @@ bool HotwordService::DoesHotwordSupportLanguage(Profile* profile) {
StringToLowerASCII(&normalized_locale);
for (size_t i = 0; i < arraysize(kSupportedLocales); i++) {
- if (normalized_locale.compare(0, 2, kSupportedLocales[i]) == 0)
+ if (kSupportedLocales[i] == normalized_locale)
return true;
}
return false;
« no previous file with comments | « chrome/browser/resources/hotword_helper/manifest.json ('k') | chrome/browser/search/hotword_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698