Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: net/http/http_server_properties_impl.cc

Issue 2080803002: [m52] Make Alt-Svc: clear work with canonical hosts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_server_properties_impl.h ('k') | net/http/http_server_properties_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a4d3ad5e3a7163d6685dee16e3214829a3bf8510..bc8838fcf8db0c5684b6a5333cd64e9c629bec5a 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;
@@ -747,9 +745,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);
}
« no previous file with comments | « net/http/http_server_properties_impl.h ('k') | net/http/http_server_properties_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698