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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 10918279: Provide mutable members of UrlRequestContext via pure-virtual interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change to returning strings by value Created 8 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
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 901e3e758104206d81d4087fff4470093156bd85..b475e6e461c8219898c4f2e0ca129988aeb917fc 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -466,15 +466,15 @@ void URLRequestHttpJob::AddExtraHeaders() {
const URLRequestContext* context = request_->context();
willchan no longer on Chromium 2012/10/06 19:32:49 Long-term, we should pass in the HttpUserAgentSett
erikwright (departed) 2012/10/09 15:24:46 Correct. I think it would make a good statement ab
// Only add default Accept-Language and Accept-Charset if the request
// didn't have them specified.
- if (!context->accept_language().empty()) {
+ if (!context->GetAcceptLanguage().empty()) {
mmenke 2012/10/05 20:08:51 Suggest you cache both of these to a local to avoi
request_info_.extra_headers.SetHeaderIfMissing(
HttpRequestHeaders::kAcceptLanguage,
- context->accept_language());
+ context->GetAcceptLanguage());
}
- if (!context->accept_charset().empty()) {
+ if (!context->GetAcceptCharset().empty()) {
request_info_.extra_headers.SetHeaderIfMissing(
HttpRequestHeaders::kAcceptCharset,
- context->accept_charset());
+ context->GetAcceptCharset());
}
}

Powered by Google App Engine
This is Rietveld 408576698