summaryrefslogtreecommitdiffstats
path: root/net/socket_stream
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-29 20:00:49 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-29 20:00:49 +0000
commitdc694c3f130f849774acdad09b5e2b8420d0ae9f (patch)
treeec2fe082c324e419fe0db917d1d9a611f0dae906 /net/socket_stream
parent22c830d776888b5c42110447ae7759f457482571 (diff)
downloadchromium_src-dc694c3f130f849774acdad09b5e2b8420d0ae9f.zip
chromium_src-dc694c3f130f849774acdad09b5e2b8420d0ae9f.tar.gz
chromium_src-dc694c3f130f849774acdad09b5e2b8420d0ae9f.tar.bz2
net: make interstitials fatal for pinned sites
BUG=105582 TEST=net_unittests Review URL: http://codereview.chromium.org/8727003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112003 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket_stream')
-rw-r--r--net/socket_stream/socket_stream_job.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/socket_stream/socket_stream_job.cc b/net/socket_stream/socket_stream_job.cc
index 64386eb..b575109 100644
--- a/net/socket_stream/socket_stream_job.cc
+++ b/net/socket_stream/socket_stream_job.cc
@@ -27,9 +27,9 @@ SocketStreamJob* SocketStreamJob::CreateSocketStreamJob(
SSLConfigService* ssl) {
GURL socket_url(url);
TransportSecurityState::DomainState domain_state;
- if (url.scheme() == "ws" && sts && sts->IsEnabledForHost(
+ if (url.scheme() == "ws" && sts && sts->GetDomainState(
&domain_state, url.host(), SSLConfigService::IsSNIAvailable(ssl)) &&
- domain_state.mode == TransportSecurityState::DomainState::MODE_STRICT) {
+ domain_state.ShouldRedirectHTTPToHTTPS()) {
url_canon::Replacements<char> replacements;
static const char kNewScheme[] = "wss";
replacements.SetScheme(kNewScheme,