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..fac9668d8ac693332f201e3e63cab611bf2c4ae3 100644 |
--- a/net/socket_stream/socket_stream_job.cc |
+++ b/net/socket_stream/socket_stream_job.cc |
@@ -28,10 +28,8 @@ 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, |