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

Unified Diff: net/url_request/redirect_info.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/redirect_info.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/redirect_info.cc
diff --git a/net/url_request/redirect_info.cc b/net/url_request/redirect_info.cc
index f7f95383e2d99de28ec0ccdd8eb5fc0db163234d..5b10f70f230e28e64e795bca3ca8763821f4d2da 100644
--- a/net/url_request/redirect_info.cc
+++ b/net/url_request/redirect_info.cc
@@ -6,7 +6,10 @@
namespace net {
-RedirectInfo::RedirectInfo() : status_code(-1) {}
+RedirectInfo::RedirectInfo()
+ : status_code(-1),
+ new_referrer_policy(
+ URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE) {}
RedirectInfo::RedirectInfo(const RedirectInfo& other) = default;
« no previous file with comments | « net/url_request/redirect_info.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698