| 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 7b997097febf3a9d80d27b124f236fde45ae7c70..2b00b893010837c5d8a282971ac585684894c33d 100644
|
| --- a/net/http/http_server_properties_impl.cc
|
| +++ b/net/http/http_server_properties_impl.cc
|
| @@ -407,11 +407,9 @@ bool HttpServerPropertiesImpl::SetAlternativeServices(
|
| AlternativeServiceMap::iterator it = alternative_service_map_.Peek(origin);
|
|
|
| if (alternative_service_info_vector.empty()) {
|
| - if (it == alternative_service_map_.end()) {
|
| - return false;
|
| - }
|
| + bool found = it != alternative_service_map_.end();
|
| ClearAlternativeServices(origin);
|
| - return true;
|
| + return found;
|
| }
|
|
|
| bool changed = true;
|
| @@ -746,9 +744,6 @@ void HttpServerPropertiesImpl::RemoveCanonicalHost(
|
| if (canonical == canonical_host_to_origin_map_.end())
|
| return;
|
|
|
| - if (!canonical->second.Equals(server))
|
| - return;
|
| -
|
| canonical_host_to_origin_map_.erase(canonical->first);
|
| }
|
|
|
|
|