HttpServerProperties - Don't persist if SetServerNetworkStats is called
commitcce34d58dbec10d9d499e6b54e4a15d9fa66fcba
authorrtenneti <rtenneti@chromium.org>
Fri, 5 Jun 2015 23:36:29 +0000 (5 16:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 5 Jun 2015 23:37:05 +0000 (5 23:37 +0000)
treeb902b25f3b0f9dd3a24addb6abe0bb54f5b090e6
parent602c2ca843a3542928df1bae4f1fc7858f9e520a
HttpServerProperties - Don't persist if SetServerNetworkStats is called
with the same origin (HostPortPair) and value (ServerNetworkStats).

This change reduces the number of times SetServerNetworkStats tries
to persist HttpServerProperties to disk (currently 17% of persist calls
are due to SetServerNetworkStats).

BUG=451256
R=rch@chromium.org

Review URL: https://codereview.chromium.org/1158823005

Cr-Commit-Position: refs/heads/master@{#333173}
net/http/http_server_properties.h
net/http/http_server_properties_manager.cc
net/http/http_server_properties_manager_unittest.cc