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

Unified Diff: net/base/sdch_manager.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 | « ios/web/public/referrer_util.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/sdch_manager.cc
diff --git a/net/base/sdch_manager.cc b/net/base/sdch_manager.cc
index 4bf178269df8dc5992314932373734a5e1e78a35..c43c8b08c955afa6c441ce5ffbf89408e074abd0 100644
--- a/net/base/sdch_manager.cc
+++ b/net/base/sdch_manager.cc
@@ -249,7 +249,7 @@ SdchProblemCode SdchManager::CanFetchDictionary(
referring_url.scheme() != dictionary_url.scheme())
return SDCH_DICTIONARY_LOAD_ATTEMPT_FROM_DIFFERENT_HOST;
- if (!secure_scheme_supported() && referring_url.SchemeIsSecure())
+ if (!secure_scheme_supported() && referring_url.SchemeIsCryptographic())
return SDCH_DICTIONARY_SELECTED_FOR_SSL;
// TODO(jar): Remove this failsafe conservative hack which is more restrictive
@@ -298,7 +298,8 @@ SdchManager::GetDictionarySetByHash(
if (it == dictionaries_.end())
return result.Pass();
- if (!SdchManager::secure_scheme_supported() && target_url.SchemeIsSecure()) {
+ if (!SdchManager::secure_scheme_supported() &&
+ target_url.SchemeIsSecure()) {
*problem_code = SDCH_DICTIONARY_FOUND_HAS_WRONG_SCHEME;
return result.Pass();
}
« no previous file with comments | « ios/web/public/referrer_util.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698