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

Unified Diff: net/url_request/url_request.cc

Issue 578553004: Remove the "snionly" concept from the HSTS preload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ... Created 6 years, 3 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/url_request/fraudulent_certificate_reporter.h ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 3764488a221fd9dcad0fcf59907b07c54fab50ef..311bb20600fe363a4c761449d6cd21d5a5f89ea7 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -1048,10 +1048,7 @@ bool URLRequest::GetHSTSRedirect(GURL* redirect_url) const {
if (!url.SchemeIs("http"))
return false;
TransportSecurityState* state = context()->transport_security_state();
- if (state &&
- state->ShouldUpgradeToSSL(
- url.host(),
- SSLConfigService::IsSNIAvailable(context()->ssl_config_service()))) {
+ if (state && state->ShouldUpgradeToSSL(url.host())) {
url::Replacements<char> replacements;
const char kNewScheme[] = "https";
replacements.SetScheme(kNewScheme, url::Component(0, strlen(kNewScheme)));
« no previous file with comments | « net/url_request/fraudulent_certificate_reporter.h ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698