HttpServerProperties - Don't persist if ClearAlternativeService is
commitcefb99b8043239c486ce4b43ca758dd2d4d0d635
authorrtenneti <rtenneti@chromium.org>
Fri, 5 Jun 2015 21:55:38 +0000 (5 14:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 5 Jun 2015 21:57:19 +0000 (5 21:57 +0000)
tree4e2697c55e767453bd7930ce5a86809d0188f78f
parente267d6a5e8f7fd198c4ac5d11d7098a1d17228c5
HttpServerProperties - Don't persist if ClearAlternativeService is
called with the same origin (HostPortPair) and nothing was deleted.

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

BUG=451256
R=rch@chromium.org

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

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