DescriptionIn the current speech input implementation, the application locale is used as
language in case that no language attribute is provided. For this, the
l10n_util::GetApplicationLocale was used from the IO thread. However this is
not valid since that function requires file access.
After considering different options this patch now uses the first of the accepted languages, defaulting to "en-US" in case that this list is empty.
BUG=53598
TEST=SpeechRecognitionRequestTest
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66605
Patch Set 1 #Patch Set 2 : now using the first of the accepted languages. #
Total comments: 1
Patch Set 3 : fixed problem that caused the unit test to crash. #
Total comments: 2
Patch Set 4 : code review fixes. #
Total comments: 1
Messages
Total messages: 9 (0 generated)
|