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

Unified Diff: chromecast/browser/cast_http_user_agent_settings.cc

Issue 2559243003: Extend with a language code in http accept languages
Patch Set: Rebased, fixed nits and handed over this CL :( Created 4 years 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
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 1161c00ed0f3fa8e64b00bb9217cb567f291af28..3e323a39a4de9229a1db384231ede824cb765ab4 100644
--- a/chromecast/browser/cast_http_user_agent_settings.cc
+++ b/chromecast/browser/cast_http_user_agent_settings.cc
@@ -10,7 +10,7 @@
#include "chromecast/common/cast_content_client.h"
#include "content/public/browser/browser_thread.h"
#include "grit/chromecast_settings.h"
-#include "net/http/http_util.h"
+#include "net/http/http_util_icu.h"
#include "ui/base/l10n/l10n_util.h"
#if defined(OS_ANDROID)
@@ -40,7 +40,7 @@ std::string CastHttpUserAgentSettings::GetAcceptLanguage() const {
);
if (new_locale != last_locale_ || accept_language_.empty()) {
last_locale_ = new_locale;
- accept_language_ = net::HttpUtil::GenerateAcceptLanguageHeader(
+ accept_language_ = net::http_util_icu::GenerateAcceptLanguageHeader(
#if defined(OS_ANDROID)
last_locale_
#else
« no previous file with comments | « chrome/browser/net/chrome_http_user_agent_settings.cc ('k') | ios/chrome/browser/net/ios_chrome_http_user_agent_settings.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698