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

Unified Diff: net/url_request/url_request_job.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 | « net/base/sdch_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_job.cc
diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc
index ce58e6a7848e2009df13c05e6e2a537f7a72f435..d54270bd435365b1491dd857a8f8607424851eea 100644
--- a/net/url_request/url_request_job.cc
+++ b/net/url_request/url_request_job.cc
@@ -280,8 +280,8 @@ GURL URLRequestJob::ComputeReferrerForRedirect(
const GURL& redirect_destination) {
GURL original_referrer(referrer);
bool secure_referrer_but_insecure_destination =
- original_referrer.SchemeIsSecure() &&
- !redirect_destination.SchemeIsSecure();
+ original_referrer.SchemeIsCryptographic() &&
+ !redirect_destination.SchemeIsCryptographic();
bool same_origin =
original_referrer.GetOrigin() == redirect_destination.GetOrigin();
switch (policy) {
« no previous file with comments | « net/base/sdch_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698