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

Unified Diff: net/url_request/url_request.cc

Issue 2918313002: Implement new referrer policies (Closed)
Patch Set: update public/platform/OWNERS per presubmit Created 3 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.h ('k') | net/url_request/url_request_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 148c3e805515557f4cb015d6fd880c5fdc3afe00..535e940ee33517a089d198461406be9962e830b9 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -648,7 +648,7 @@ void URLRequest::StartJob(URLRequestJob* job) {
response_info_.was_cached = false;
GURL referrer_url(referrer_);
- if (referrer_url != URLRequestJob::ComputeReferrerForRedirect(
+ if (referrer_url != URLRequestJob::ComputeReferrerForPolicy(
referrer_policy_, referrer_url, url())) {
if (!network_delegate_ ||
!network_delegate_->CancelURLRequestWithPolicyViolatingReferrerHeader(
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698