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

Unified Diff: content/public/common/referrer.cc

Issue 1098983003: Switch SchemeIsSecure to SchemeIsCryptographic for referrer-related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « content/child/resource_dispatcher.cc ('k') | ios/web/public/referrer_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/referrer.cc
diff --git a/content/public/common/referrer.cc b/content/public/common/referrer.cc
index 225df96c94dbeb8b523c29fcd9e618d772edd2f1..183c950673fa095f686c80d0d83629a7890fd8e7 100644
--- a/content/public/common/referrer.cc
+++ b/content/public/common/referrer.cc
@@ -19,8 +19,8 @@ Referrer Referrer::SanitizeForRequest(const GURL& request,
return sanitized_referrer;
}
- bool is_downgrade =
- sanitized_referrer.url.SchemeIsSecure() && !request.SchemeIsSecure();
+ bool is_downgrade = sanitized_referrer.url.SchemeIsCryptographic() &&
+ !request.SchemeIsCryptographic();
if (sanitized_referrer.policy < 0 ||
sanitized_referrer.policy > blink::WebReferrerPolicyLast) {
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | ios/web/public/referrer_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698