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

Unified Diff: chromecast/browser/cast_http_user_agent_settings.cc

Issue 670423002: Chromecast buildfix (Android): locale API changed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/browser/cast_http_user_agent_settings.cc
diff --git a/chromecast/browser/cast_http_user_agent_settings.cc b/chromecast/browser/cast_http_user_agent_settings.cc
index 1cbf1c6da6129ff3a04ca55f05d0376a8d5861ce..9eb2705866683f22b9c0ed31c8a5fd400c42e7ab 100644
--- a/chromecast/browser/cast_http_user_agent_settings.cc
+++ b/chromecast/browser/cast_http_user_agent_settings.cc
@@ -12,7 +12,7 @@
#include "ui/base/l10n/l10n_util.h"
#if defined(OS_ANDROID)
-#include "ui/base/l10n/l10n_util_android.h"
+#include "base/android/locale_utils.h"
#endif // defined(OS_ANDROID)
namespace chromecast {
@@ -31,7 +31,7 @@ std::string CastHttpUserAgentSettings::GetAcceptLanguage() const {
if (accept_language_.empty()) {
accept_language_ = net::HttpUtil::GenerateAcceptLanguageHeader(
#if defined(OS_ANDROID)
- l10n_util::GetDefaultLocale()
+ base::android::GetDefaultLocale()
#else
l10n_util::GetStringUTF8(IDS_CHROMECAST_SETTINGS_ACCEPT_LANGUAGES)
#endif // defined(OS_ANDROID)
« 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