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

Unified Diff: content/child/resource_dispatcher.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 | « components/sessions/ios/ios_serialized_navigation_driver.cc ('k') | content/public/common/referrer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index cf56a77c8a0556d01b64afb1d40e1bbba3732faa..baa6f6f65fccb17e223a97bcac4862c61e71c268 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -766,8 +766,8 @@ scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest(
if ((request_info.referrer.policy == blink::WebReferrerPolicyDefault ||
request_info.referrer.policy ==
blink::WebReferrerPolicyNoReferrerWhenDowngrade) &&
- request_info.referrer.url.SchemeIsSecure() &&
- !request_info.url.SchemeIsSecure()) {
+ request_info.referrer.url.SchemeIsCryptographic() &&
+ !request_info.url.SchemeIsCryptographic()) {
LOG(FATAL) << "Trying to send secure referrer for insecure request "
<< "without an appropriate referrer policy.\n"
<< "URL = " << request_info.url << "\n"
« no previous file with comments | « components/sessions/ios/ios_serialized_navigation_driver.cc ('k') | content/public/common/referrer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698