Commit fc831ad3 authored by gunsch's avatar gunsch Committed by Commit bot

Chromecast: return the correct locale in ContentBrowserClient.

R=byungchul@chromium.org,lcwu@chromium.org
BUG=336640

Review URL: https://codereview.chromium.org/517213005

Cr-Commit-Position: refs/heads/master@{#292737}
parent cf7730f0
...@@ -97,7 +97,8 @@ void CastContentBrowserClient::OverrideWebkitPrefs( ...@@ -97,7 +97,8 @@ void CastContentBrowserClient::OverrideWebkitPrefs(
} }
std::string CastContentBrowserClient::GetApplicationLocale() { std::string CastContentBrowserClient::GetApplicationLocale() {
return "en-US"; const std::string locale(base::i18n::GetConfiguredLocale());
return locale.empty() ? "en-US" : locale;
} }
void CastContentBrowserClient::AllowCertificateError( void CastContentBrowserClient::AllowCertificateError(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment