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 7ea613eda7b7313e82e68fcb735899e0f4486e7c..47b33091172dc44e72c4daf65b2330c2de65a34d 100644 |
| --- a/net/http/http_server_properties_impl.cc |
| +++ b/net/http/http_server_properties_impl.cc |
| @@ -343,6 +343,12 @@ void HttpServerPropertiesImpl::SetBrokenAlternateProtocol( |
| } |
| } |
| +void HttpServerPropertiesImpl::MarkAlternativeServiceRecentlyBroken( |
| + const AlternativeService& alternative_service) { |
| + if (recently_broken_alternative_services_[alternative_service] == 0) |
|
Ryan Hamilton
2015/03/11 20:28:02
If it were me, I'd replace this if:
if (!Contains
Bence
2015/03/12 01:12:53
Done.
|
| + recently_broken_alternative_services_[alternative_service] = 1; |
| +} |
| + |
| bool HttpServerPropertiesImpl::IsAlternativeServiceBroken( |
| const AlternativeService& alternative_service) { |
| return ContainsKey(broken_alternative_services_, alternative_service); |