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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 747043002: Referrer Policy: Introduce "Origin When Cross-Origin" [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@urlrequest
Patch Set: clang-format Created 6 years, 1 month 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 | « chrome/browser/referrer_policy_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index 85ac2bf6214b07e56275281549c1ad0933e04d43..39e03c527e9812c226a0b468ea1e4a997c097d79 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -251,6 +251,10 @@ void SetReferrerForRequest(net::URLRequest* request, const Referrer& referrer) {
net_referrer_policy =
net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE;
break;
+ case blink::WebReferrerPolicyOriginWhenCrossOrigin:
+ net_referrer_policy =
+ net::URLRequest::ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN;
+ break;
case blink::WebReferrerPolicyDefault:
default:
net_referrer_policy =
« no previous file with comments | « chrome/browser/referrer_policy_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698