Index: net/socket/ssl_client_socket.cc |
diff --git a/net/socket/ssl_client_socket.cc b/net/socket/ssl_client_socket.cc |
index 8f88b31f0ce10052b4857167e4f4e7a60ba7d54e..3472fd023f2aae650c253a8212de8c533dbc5c55 100644 |
--- a/net/socket/ssl_client_socket.cc |
+++ b/net/socket/ssl_client_socket.cc |
@@ -189,13 +189,9 @@ bool SSLClientSocket::IsTLSVersionAdequateForHTTP2( |
// static |
std::vector<uint8_t> SSLClientSocket::SerializeNextProtos( |
- const NextProtoVector& next_protos, |
- bool can_advertise_http2) { |
+ const NextProtoVector& next_protos) { |
std::vector<uint8_t> wire_protos; |
for (const NextProto next_proto : next_protos) { |
- if (!can_advertise_http2 && next_proto == kProtoHTTP2) { |
- continue; |
- } |
const std::string proto = NextProtoToString(next_proto); |
if (proto.size() > 255) { |
LOG(WARNING) << "Ignoring overlong NPN/ALPN protocol: " << proto; |