Index: net/quic/quic_stream_factory.cc |
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc |
index f957c18f6244c96ad192d3b4bcb154c6f7a837e8..f38ae01429471a6b4f094f5f66e27cdc478a5d9f 100644 |
--- a/net/quic/quic_stream_factory.cc |
+++ b/net/quic/quic_stream_factory.cc |
@@ -1249,7 +1249,9 @@ void QuicStreamFactory::ProcessGoingAwaySession( |
const HostPortPair& server = server_id.host_port_pair(); |
// Don't try to change the alternate-protocol state, if the |
// alternate-protocol state is unknown. |
- if (!http_server_properties_->HasAlternateProtocol(server)) |
+ const AlternateProtocolInfo alternate = |
+ http_server_properties_->GetAlternateProtocol(server); |
+ if (alternate.protocol == UNINITIALIZED_ALTERNATE_PROTOCOL) |
return; |
// TODO(rch): In the special case where the session has received no |
@@ -1258,8 +1260,6 @@ void QuicStreamFactory::ProcessGoingAwaySession( |
// session connected until the handshake has been confirmed. |
HistogramBrokenAlternateProtocolLocation( |
BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY); |
- AlternateProtocolInfo alternate = |
- http_server_properties_->GetAlternateProtocol(server); |
DCHECK_EQ(QUIC, alternate.protocol); |
// Since the session was active, there's no longer an |