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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2918313002: Implement new referrer policies (Closed)
Patch Set: rebase 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
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index acd699d37d54cedb4f76fb1e7e756eaa2130948e..1338d030e9c7df4b04485e86b4e06ba508188b83 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -187,6 +187,10 @@ blink::WebReferrerPolicy NetReferrerPolicyToBlinkReferrerPolicy(
return blink::kWebReferrerPolicyAlways;
case net::URLRequest::ORIGIN:
return blink::kWebReferrerPolicyOrigin;
+ case net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN:
+ return blink::kWebReferrerPolicySameOrigin;
+ case net::URLRequest::ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE:
+ return blink::kWebReferrerPolicyStrictOrigin;
case net::URLRequest::NO_REFERRER:
return blink::kWebReferrerPolicyNever;
case net::URLRequest::MAX_REFERRER_POLICY:

Powered by Google App Engine
This is Rietveld 408576698