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

Unified Diff: chromecast/browser/cast_http_user_agent_settings.cc

Issue 2559243003: Extend with a language code in http accept languages
Patch Set: Rebased and modified descriptions 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..b1459ce436636ffc70b8de3a3c48db51f4374a9b 100644
--- a/chromecast/browser/cast_http_user_agent_settings.cc
+++ b/chromecast/browser/cast_http_user_agent_settings.cc
@@ -11,6 +11,7 @@
#include "content/public/browser/browser_thread.h"
#include "grit/chromecast_settings.h"
#include "net/http/http_util.h"
Seigo Nonaka 2016/12/14 01:27:21 nit: Please remove
Yirui Huang 2016/12/14 01:53:09 Done.
+#include "net/http/http_util_icu.h"
#include "ui/base/l10n/l10n_util.h"
#if defined(OS_ANDROID)
@@ -40,7 +41,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::HttpUtilIcu::GenerateAcceptLanguageHeader(
#if defined(OS_ANDROID)
last_locale_
#else

Powered by Google App Engine
This is Rietveld 408576698