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

Unified Diff: ios/chrome/browser/voice/speech_input_locale_config_impl.mm

Issue 2477423002: [ios] Removes calls to the deprecated GetAvailableVoiceSearchLanguages(). (Closed)
Patch Set: Fix compile. Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/voice/speech_input_locale_config_impl.mm
diff --git a/ios/chrome/browser/voice/speech_input_locale_config_impl.mm b/ios/chrome/browser/voice/speech_input_locale_config_impl.mm
index 5be24ab6bf65cdb68638b94ac4ce6b8c68351540..4cee9e507434303b379577dc5545d5bac652546f 100644
--- a/ios/chrome/browser/voice/speech_input_locale_config_impl.mm
+++ b/ios/chrome/browser/voice/speech_input_locale_config_impl.mm
@@ -14,6 +14,7 @@
#import "ios/chrome/browser/voice/speech_input_locale_match_config.h"
#include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
#include "ios/public/provider/chrome/browser/voice/voice_search_language.h"
+#include "ios/public/provider/chrome/browser/voice/voice_search_provider.h"
namespace {
@@ -144,8 +145,9 @@ std::string SpeechInputLocaleConfigImpl::GetDefaultLocaleCode() const {
}
void SpeechInputLocaleConfigImpl::InitializeAvailableLocales() {
- NSArray* languages =
- ios::GetChromeBrowserProvider()->GetAvailableVoiceSearchLanguages();
+ NSArray* languages = ios::GetChromeBrowserProvider()
+ ->GetVoiceSearchProvider()
+ ->GetAvailableLanguages();
for (VoiceSearchLanguage* language in languages) {
// Store the InputLocale in |available_locales_|.
std::string locale_code = GetCanonicalLocaleForLocale(language.identifier);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698