Skip to content
Snippets Groups Projects
Commit 57cc331a authored by leandrogracia@chromium.org's avatar leandrogracia@chromium.org
Browse files

In 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

Review URL: http://codereview.chromium.org/4896001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66605 0039d316-1c4b-4281-b951-d872f2087c98
parent d6f45d89
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment