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

Unified Diff: chromecast/shell/browser/cast_content_browser_client.cc

Issue 517213005: Chromecast: return the correct locale in ContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months 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: chromecast/shell/browser/cast_content_browser_client.cc
diff --git a/chromecast/shell/browser/cast_content_browser_client.cc b/chromecast/shell/browser/cast_content_browser_client.cc
index 720bbb82de7447cd05f7fc01aec294f7eefd608b..12600e17aa0ebcaf149928b69633349463012c90 100644
--- a/chromecast/shell/browser/cast_content_browser_client.cc
+++ b/chromecast/shell/browser/cast_content_browser_client.cc
@@ -97,7 +97,8 @@ void CastContentBrowserClient::OverrideWebkitPrefs(
}
std::string CastContentBrowserClient::GetApplicationLocale() {
- return "en-US";
+ const std::string locale(base::i18n::GetConfiguredLocale());
+ return locale.empty() ? "en-US" : locale;
}
void CastContentBrowserClient::AllowCertificateError(
« 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