• rtenneti's avatar
    HttpServerProperties - Don't persist if ConfirmAlternativeService is · 5b3bb859
    rtenneti authored
    called with the same origin (HostPortPair) more than once and if we
    didn't change anything in  broken_alternative_services_ (in other words
    the return value of IsAlternativeServiceBroken hasn't changed).
    
    This change reduces the number of times ConfirmAlternativeService tries to
    persist HttpServerProperties to disk (currently ~17% of persist calls
    are due to ConfirmAlternativeService).
    
    BUG=451256
    R=rch@chromium.org
    
    Review URL: https://codereview.chromium.org/1142413004
    
    Cr-Commit-Position: refs/heads/master@{#333169}
    5b3bb859
http_server_properties_manager_unittest.cc 36 KB