Index: net/socket_stream/socket_stream_job.cc |
diff --git a/net/socket_stream/socket_stream_job.cc b/net/socket_stream/socket_stream_job.cc |
index f2de82324ac69b1a8a1e8c9ebae3446757a4c4e1..a2bb7810dbbd4b75d096b6ef400719e67f657616 100644 |
--- a/net/socket_stream/socket_stream_job.cc |
+++ b/net/socket_stream/socket_stream_job.cc |
@@ -28,10 +28,9 @@ SocketStreamJob* SocketStreamJob::CreateSocketStreamJob( |
URLRequestContext* context, |
CookieStore* cookie_store) { |
GURL socket_url(url); |
- TransportSecurityState::DomainState domain_state; |
- if (url.scheme() == "ws" && sts && sts->GetDomainState( |
- url.host(), SSLConfigService::IsSNIAvailable(ssl), &domain_state) && |
- domain_state.ShouldUpgradeToSSL()) { |
+ if (url.scheme() == "ws" && sts && |
+ sts->ShouldUpgradeToSSL(url.host(), |
+ SSLConfigService::IsSNIAvailable(ssl))) { |
url_canon::Replacements<char> replacements; |
static const char kNewScheme[] = "wss"; |
replacements.SetScheme(kNewScheme, |