| Index: net/quic/quic_stream_factory.cc
|
| diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc
|
| index f572a7281317d48f120efa188b594cfb1b89271c..82a4879785ba01b8273bb7aea94a7408a4bcd3ef 100644
|
| --- a/net/quic/quic_stream_factory.cc
|
| +++ b/net/quic/quic_stream_factory.cc
|
| @@ -1630,9 +1630,10 @@ void QuicStreamFactory::ActivateSession(const QuicServerId& server_id,
|
|
|
| int64_t QuicStreamFactory::GetServerNetworkStatsSmoothedRttInMicroseconds(
|
| const QuicServerId& server_id) const {
|
| + url::SchemeHostPort server("https", server_id.host_port_pair().host(),
|
| + server_id.host_port_pair().port());
|
| const ServerNetworkStats* stats =
|
| - http_server_properties_->GetServerNetworkStats(
|
| - server_id.host_port_pair());
|
| + http_server_properties_->GetServerNetworkStats(server);
|
| if (stats == nullptr)
|
| return 0;
|
| return stats->srtt.InMicroseconds();
|
| @@ -1695,12 +1696,13 @@ void QuicStreamFactory::MaybeInitialize() {
|
| return;
|
|
|
| has_initialized_data_ = true;
|
| - for (const std::pair<const HostPortPair, AlternativeServiceInfoVector>&
|
| + for (const std::pair<const url::SchemeHostPort, AlternativeServiceInfoVector>&
|
| key_value : http_server_properties_->alternative_service_map()) {
|
| + HostPortPair host_port_pair(key_value.first.host(), key_value.first.port());
|
| for (const AlternativeServiceInfo& alternative_service_info :
|
| key_value.second) {
|
| if (alternative_service_info.alternative_service.protocol == QUIC) {
|
| - quic_supported_servers_at_startup_.insert(key_value.first);
|
| + quic_supported_servers_at_startup_.insert(host_port_pair);
|
| break;
|
| }
|
| }
|
| @@ -1744,8 +1746,9 @@ void QuicStreamFactory::ProcessGoingAwaySession(
|
| ServerNetworkStats network_stats;
|
| network_stats.srtt = base::TimeDelta::FromMicroseconds(stats.srtt_us);
|
| network_stats.bandwidth_estimate = stats.estimated_bandwidth;
|
| - http_server_properties_->SetServerNetworkStats(server_id.host_port_pair(),
|
| - network_stats);
|
| + url::SchemeHostPort server("https", server_id.host_port_pair().host(),
|
| + server_id.host_port_pair().port());
|
| + http_server_properties_->SetServerNetworkStats(server, network_stats);
|
| return;
|
| }
|
|
|
|
|