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

Unified Diff: net/url_request/url_request_context.cc

Issue 2111623003: Reland of Apply Referrer-Policy header when following redirects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initialize |read_handler| Created 4 years, 6 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 | « net/url_request/url_request_context.h ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context.cc
diff --git a/net/url_request/url_request_context.cc b/net/url_request/url_request_context.cc
index 1e3dc4ead60cf6f6e5bfbeb349b0808af2e2db36..15d0813b0a15a6554133c0b6216747ceacb03396 100644
--- a/net/url_request/url_request_context.cc
+++ b/net/url_request/url_request_context.cc
@@ -37,7 +37,8 @@ URLRequestContext::URLRequestContext()
sdch_manager_(nullptr),
network_quality_estimator_(nullptr),
url_requests_(new std::set<const URLRequest*>),
- enable_brotli_(false) {}
+ enable_brotli_(false),
+ enable_referrer_policy_header_(false) {}
URLRequestContext::~URLRequestContext() {
AssertNoURLRequests();
@@ -66,6 +67,7 @@ void URLRequestContext::CopyFrom(const URLRequestContext* other) {
set_http_user_agent_settings(other->http_user_agent_settings_);
set_network_quality_estimator(other->network_quality_estimator_);
set_enable_brotli(other->enable_brotli_);
+ set_enable_referrer_policy_header(other->enable_referrer_policy_header_);
}
const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams(
« no previous file with comments | « net/url_request/url_request_context.h ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698