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

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

Issue 340413003: Revert 277718 "[Hotword] Remove non-English languages due to fea..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/chrome/browser/search/hotword_service.cc
===================================================================
--- trunk/src/chrome/browser/search/hotword_service.cc (revision 278418)
+++ trunk/src/chrome/browser/search/hotword_service.cc (working copy)
@@ -45,7 +45,9 @@
// Allowed languages for hotwording.
static const char* kSupportedLocales[] = {
"en",
- "en_us",
+ "de",
+ "fr",
+ "ru"
};
// Enum describing the state of the hotword preference.
@@ -166,7 +168,7 @@
StringToLowerASCII(&normalized_locale);
for (size_t i = 0; i < arraysize(kSupportedLocales); i++) {
- if (kSupportedLocales[i] == normalized_locale)
+ if (normalized_locale.compare(0, 2, kSupportedLocales[i]) == 0)
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698