Index: net/http/http_network_session.cc |
diff --git a/net/http/http_network_session.cc b/net/http/http_network_session.cc |
index 656db549364b96c399a3dc72bb934c29f30dc108..405c88c8ff409b5d54820cd0f7df8ac022fd2440 100644 |
--- a/net/http/http_network_session.cc |
+++ b/net/http/http_network_session.cc |
@@ -26,6 +26,7 @@ |
#include "net/socket/client_socket_factory.h" |
#include "net/socket/client_socket_pool_manager_impl.h" |
#include "net/socket/next_proto.h" |
+#include "net/socket/ssl_client_socket.h" |
#include "net/spdy/hpack_huffman_aggregator.h" |
#include "net/spdy/spdy_session_pool.h" |
@@ -166,7 +167,7 @@ HttpNetworkSession::HttpNetworkSession(const Params& params) |
// Add the protocol to the TLS next protocol list, except for QUIC |
// since it uses UDP. |
if (proto != kProtoQUIC1SPDY3) { |
- next_protos_.push_back(SSLClientSocket::NextProtoToString(proto)); |
+ next_protos_.push_back(proto); |
} |
// Enable the corresponding alternate protocol, except for HTTP |
@@ -284,8 +285,7 @@ bool HttpNetworkSession::IsProtocolEnabled(AlternateProtocol protocol) const { |
protocol - ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION]; |
} |
-void HttpNetworkSession::GetNextProtos( |
- std::vector<std::string>* next_protos) const { |
+void HttpNetworkSession::GetNextProtos(NextProtoVector* next_protos) const { |
if (HttpStreamFactory::spdy_enabled()) { |
*next_protos = next_protos_; |
} else { |