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

Unified Diff: net/http/http_server_properties_impl.cc

Issue 2229393003: net: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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_network_session.cc ('k') | net/http/http_stream_factory_impl.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 90eee301a8f18621d0c805d11d187bd9cdf0de05..11f5e3fbf397b9649250d1609e106a90415eb2bc 100644
--- a/net/http/http_server_properties_impl.cc
+++ b/net/http/http_server_properties_impl.cc
@@ -112,7 +112,7 @@ void HttpServerPropertiesImpl::InitializeAlternativeServiceServers(
url::SchemeHostPort canonical_server(kCanonicalScheme, canonical_suffix,
kCanonicalPort);
// If we already have a valid canonical server, we're done.
- if (ContainsKey(canonical_host_to_origin_map_, canonical_server) &&
+ if (base::ContainsKey(canonical_host_to_origin_map_, canonical_server) &&
(alternative_service_map_.Peek(
canonical_host_to_origin_map_[canonical_server]) !=
alternative_service_map_.end())) {
@@ -492,7 +492,8 @@ void HttpServerPropertiesImpl::MarkAlternativeServiceBroken(
void HttpServerPropertiesImpl::MarkAlternativeServiceRecentlyBroken(
const AlternativeService& alternative_service) {
- if (!ContainsKey(recently_broken_alternative_services_, alternative_service))
+ if (!base::ContainsKey(recently_broken_alternative_services_,
+ alternative_service))
recently_broken_alternative_services_[alternative_service] = 1;
}
@@ -500,15 +501,15 @@ bool HttpServerPropertiesImpl::IsAlternativeServiceBroken(
const AlternativeService& alternative_service) const {
// Empty host means use host of origin, callers are supposed to substitute.
DCHECK(!alternative_service.host.empty());
- return ContainsKey(broken_alternative_services_, alternative_service);
+ return base::ContainsKey(broken_alternative_services_, alternative_service);
}
bool HttpServerPropertiesImpl::WasAlternativeServiceRecentlyBroken(
const AlternativeService& alternative_service) {
if (alternative_service.protocol == UNINITIALIZED_ALTERNATE_PROTOCOL)
return false;
- return ContainsKey(recently_broken_alternative_services_,
- alternative_service);
+ return base::ContainsKey(recently_broken_alternative_services_,
+ alternative_service);
}
void HttpServerPropertiesImpl::ConfirmAlternativeService(
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_stream_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698