Chromium Code Reviews| Index: ios/chrome/browser/providers/chromium_voice_search_provider.mm |
| diff --git a/ios/chrome/browser/providers/chromium_voice_search_provider.mm b/ios/chrome/browser/providers/chromium_voice_search_provider.mm |
| index d35449b3645db3ae611c05249a6b5dbf36487a62..3f7ae401e20e84bd286eb6d310406a879eb0aaaa 100644 |
| --- a/ios/chrome/browser/providers/chromium_voice_search_provider.mm |
| +++ b/ios/chrome/browser/providers/chromium_voice_search_provider.mm |
| @@ -4,6 +4,8 @@ |
| #import "ios/chrome/browser/providers/chromium_voice_search_provider.h" |
| +#import "ios/public/provider/chrome/browser/voice/voice_search_language.h" |
| + |
| #if !defined(__has_feature) || !__has_feature(objc_arc) |
| #error "This file requires ARC support." |
| #endif |
| @@ -15,3 +17,16 @@ ChromiumVoiceSearchProvider::~ChromiumVoiceSearchProvider() {} |
| bool ChromiumVoiceSearchProvider::IsVoiceSearchEnabled() const { |
| return false; |
| } |
| + |
| +NSArray* ChromiumVoiceSearchProvider::GetAvailableLanguages() const { |
| + VoiceSearchLanguage* en = |
| + [[VoiceSearchLanguage alloc] initWithIdentifier:@"en-US" |
| + displayName:@"English (US)" |
| + localizationPreference:nil]; |
| + VoiceSearchLanguage* hi = |
|
sdefresne
2016/11/24 10:56:37
Why this second language? Does the code need at le
rohitrao (ping after 24h)
2016/11/24 11:46:42
No particular reason, it just seemed like having m
|
| + [[VoiceSearchLanguage alloc] initWithIdentifier:@"hi" |
| + displayName:@"Hindi" |
| + localizationPreference:nil]; |
| + |
| + return @[ en, hi ]; |
| +} |