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

Unified Diff: net/url_request/url_request_job.cc

Issue 2399643002: Ship Referrer-Policy header (Closed)
Patch Set: remove some more missed ShouldEnableReferrerPolicyHeader() spots Created 4 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
« no previous file with comments | « net/url_request/url_request_context.cc ('k') | net/url_request/url_request_job_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_job.cc
diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc
index eb2cf5058a6cba5a9dbc1fde8d07c059ab2e740e..83340642a16af099a15e8f808c92fb9052853765 100644
--- a/net/url_request/url_request_job.cc
+++ b/net/url_request/url_request_job.cc
@@ -955,12 +955,8 @@ RedirectInfo URLRequestJob::ComputeRedirectInfo(const GURL& location,
request_->first_party_for_cookies();
}
- if (request_->context()->enable_referrer_policy_header()) {
- redirect_info.new_referrer_policy =
- ProcessReferrerPolicyHeaderOnRedirect(request_);
- } else {
- redirect_info.new_referrer_policy = request_->referrer_policy();
- }
+ redirect_info.new_referrer_policy =
+ ProcessReferrerPolicyHeaderOnRedirect(request_);
// Alter the referrer if redirecting cross-origin (especially HTTP->HTTPS).
redirect_info.new_referrer =
« no previous file with comments | « net/url_request/url_request_context.cc ('k') | net/url_request/url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698