Chromium Code Reviews| Index: net/http/http_server_properties_impl.cc |
| diff --git a/net/http/http_server_properties_impl.cc b/net/http/http_server_properties_impl.cc |
| index 1265ef34963978f12530bbbf368a20f1f43a40da..8b903e014de98cf3e909394adc2e2383a585d557 100644 |
| --- a/net/http/http_server_properties_impl.cc |
| +++ b/net/http/http_server_properties_impl.cc |
| @@ -489,10 +489,12 @@ void HttpServerPropertiesImpl::SetSupportsQuic(bool used_quic, |
| } |
| } |
| -void HttpServerPropertiesImpl::SetServerNetworkStats( |
| +bool HttpServerPropertiesImpl::SetServerNetworkStats( |
| const HostPortPair& host_port_pair, |
| ServerNetworkStats stats) { |
| + const ServerNetworkStats* old_stats = GetServerNetworkStats(host_port_pair); |
| server_network_stats_map_.Put(host_port_pair, stats); |
| + return !old_stats || *old_stats != stats; |
|
ramant (doing other things)
2015/05/28 22:33:38
Hi Ryan,
Made a small change to update the Memor
ramant (doing other things)
2015/06/03 21:37:00
Please ignore this comment.
|
| } |
| const ServerNetworkStats* HttpServerPropertiesImpl::GetServerNetworkStats( |