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

Unified Diff: components/sessions/ios/ios_serialized_navigation_driver.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 | « chrome/browser/safe_browsing/browser_feature_extractor.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sessions/ios/ios_serialized_navigation_driver.cc
diff --git a/components/sessions/ios/ios_serialized_navigation_driver.cc b/components/sessions/ios/ios_serialized_navigation_driver.cc
index cbc06a585a8fdccc04a54d8c7c8336890b40b659..9f41d8ba37cb911de74096e7218a48f6bf36940a 100644
--- a/components/sessions/ios/ios_serialized_navigation_driver.cc
+++ b/components/sessions/ios/ios_serialized_navigation_driver.cc
@@ -98,8 +98,8 @@ void IOSSerializedNavigationDriver::Sanitize(
NOTREACHED();
referrer.policy = web::ReferrerPolicyNever;
}
- bool is_downgrade = referrer.url.SchemeIsSecure() &&
- !navigation->virtual_url_.SchemeIsSecure();
+ bool is_downgrade = referrer.url.SchemeIsCryptographic() &&
+ !navigation->virtual_url_.SchemeIsCryptographic();
switch (referrer.policy) {
case web::ReferrerPolicyDefault:
if (is_downgrade)
« no previous file with comments | « chrome/browser/safe_browsing/browser_feature_extractor.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698