summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/http_bridge.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-09 04:02:37 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-09 04:02:37 +0000
commit051a4b39fdd8ba22b77502c9bb3d11cb65897fd7 (patch)
tree305db75b7cbff03bcbcefb7ed0f468808b68f930 /sync/internal_api/http_bridge.cc
parent1b901f991e41b90ba95a3aeee8dac56d783d55cc (diff)
downloadchromium_src-051a4b39fdd8ba22b77502c9bb3d11cb65897fd7.zip
chromium_src-051a4b39fdd8ba22b77502c9bb3d11cb65897fd7.tar.gz
chromium_src-051a4b39fdd8ba22b77502c9bb3d11cb65897fd7.tar.bz2
Cleanup: Remove legacy accessors from URLRequestContext.
Review URL: https://codereview.chromium.org/83433008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243750 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/http_bridge.cc')
-rw-r--r--sync/internal_api/http_bridge.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sync/internal_api/http_bridge.cc b/sync/internal_api/http_bridge.cc
index 5827c9d..12cfda8 100644
--- a/sync/internal_api/http_bridge.cc
+++ b/sync/internal_api/http_bridge.cc
@@ -151,8 +151,13 @@ HttpBridge::RequestContext::RequestContext(
// should be tied to whatever the sync servers expect (if anything). These
// fields should probably just be settable by sync backend; though we should
// figure out if we need to give the user explicit control over policies etc.
+ std::string accepted_language_list;
+ if (baseline_context->http_user_agent_settings()) {
+ accepted_language_list =
+ baseline_context->http_user_agent_settings()->GetAcceptLanguage();
+ }
http_user_agent_settings_.reset(new net::StaticHttpUserAgentSettings(
- baseline_context->GetAcceptLanguage(),
+ accepted_language_list,
user_agent));
set_http_user_agent_settings(http_user_agent_settings_.get());