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

Unified Diff: ios/web/public/referrer_util.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/public/common/referrer.cc ('k') | net/base/sdch_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/referrer_util.cc
diff --git a/ios/web/public/referrer_util.cc b/ios/web/public/referrer_util.cc
index 579ca1b2ace3bd7166f8c0f10d126b5f593b567a..7ab2ef1a0afc69a1e12f5b5a2cd498d519cecc5f 100644
--- a/ios/web/public/referrer_util.cc
+++ b/ios/web/public/referrer_util.cc
@@ -23,8 +23,8 @@ std::string ReferrerHeaderValueForNavigation(
const GURL& destination,
const web::Referrer& referrer) {
std::string referrer_value;
- bool leaving_secure_scheme =
- referrer.url.SchemeIsSecure() && !destination.SchemeIsSecure();
+ bool leaving_secure_scheme = referrer.url.SchemeIsCryptographic() &&
+ !destination.SchemeIsCryptographic();
if (referrer.policy == ReferrerPolicyAlways ||
(referrer.policy == ReferrerPolicyDefault && !leaving_secure_scheme)) {
if (referrer.url.is_valid())
« no previous file with comments | « content/public/common/referrer.cc ('k') | net/base/sdch_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698