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