Index: net/http/http_network_transaction.cc |
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc |
index ef111ea8d27a4eaed1572717c4c627ab8d6d1a07..1c11e382de9d962f77a50f475d834fc179837cd6 100644 |
--- a/net/http/http_network_transaction.cc |
+++ b/net/http/http_network_transaction.cc |
@@ -866,9 +866,9 @@ int HttpNetworkTransaction::DoSSLConnectComplete(int result) { |
// here, then we know that we called SSL_ImportFD. |
if (result == OK || IsCertificateError(result)) |
status = ssl_socket->GetNextProto(&proto); |
- static const char kSpdyProto[] = "spdy"; |
using_spdy_ = (status == SSLClientSocket::kNextProtoNegotiated && |
- proto == kSpdyProto); |
+ SSLClientSocket::NextProtoFromString(proto) == |
+ SSLClientSocket::kProtoSPDY1); |
if (alternate_protocol_mode_ == kUsingAlternateProtocol && |
alternate_protocol_ == HttpAlternateProtocols::NPN_SPDY_1 && |