| 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;
|
|
|