Index: net/http/http_stream_factory.cc |
diff --git a/net/http/http_stream_factory.cc b/net/http/http_stream_factory.cc |
index e3d35b74abe641227b91ef9c115939a14627e300..ee7053676321b89418ec6defae1b7f1e554fab57 100644 |
--- a/net/http/http_stream_factory.cc |
+++ b/net/http/http_stream_factory.cc |
@@ -84,7 +84,7 @@ void HttpStreamFactory::ProcessAlternateProtocol( |
} |
if (!is_valid || protocol == UNINITIALIZED_ALTERNATE_PROTOCOL) { |
- http_server_properties->ClearAlternativeService(http_host_port_pair); |
+ http_server_properties->ClearAlternativeServices(http_host_port_pair); |
return; |
} |
@@ -93,7 +93,8 @@ void HttpStreamFactory::ProcessAlternateProtocol( |
if (mapping_rules) |
mapping_rules->RewriteHost(&host_port); |
- http_server_properties->SetAlternativeService( |
+ http_server_properties->ClearAlternativeServices(host_port); |
+ http_server_properties->AddAlternativeService( |
host_port, AlternativeService(protocol, "", static_cast<uint16>(port)), |
probability); |
} |