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

Unified Diff: content/child/service_worker/service_worker_dispatcher.cc

Issue 2228403003: content: 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 | « content/child/resource_dispatcher_unittest.cc ('k') | content/child/worker_thread_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/service_worker/service_worker_dispatcher.cc
diff --git a/content/child/service_worker/service_worker_dispatcher.cc b/content/child/service_worker/service_worker_dispatcher.cc
index 025f26ec523dd649d54be5b5da09ef37729934e9..984468a725342878cf099057958ac33bfaa193ad 100644
--- a/content/child/service_worker/service_worker_dispatcher.cc
+++ b/content/child/service_worker/service_worker_dispatcher.cc
@@ -210,14 +210,15 @@ void ServiceWorkerDispatcher::AddProviderContext(
ServiceWorkerProviderContext* provider_context) {
DCHECK(provider_context);
int provider_id = provider_context->provider_id();
- DCHECK(!ContainsKey(provider_contexts_, provider_id));
+ DCHECK(!base::ContainsKey(provider_contexts_, provider_id));
provider_contexts_[provider_id] = provider_context;
}
void ServiceWorkerDispatcher::RemoveProviderContext(
ServiceWorkerProviderContext* provider_context) {
DCHECK(provider_context);
- DCHECK(ContainsKey(provider_contexts_, provider_context->provider_id()));
+ DCHECK(
+ base::ContainsKey(provider_contexts_, provider_context->provider_id()));
provider_contexts_.erase(provider_context->provider_id());
}
@@ -225,13 +226,13 @@ void ServiceWorkerDispatcher::AddProviderClient(
int provider_id,
blink::WebServiceWorkerProviderClient* client) {
DCHECK(client);
- DCHECK(!ContainsKey(provider_clients_, provider_id));
+ DCHECK(!base::ContainsKey(provider_clients_, provider_id));
provider_clients_[provider_id] = client;
}
void ServiceWorkerDispatcher::RemoveProviderClient(int provider_id) {
// This could be possibly called multiple times to ensure termination.
- if (ContainsKey(provider_clients_, provider_id))
+ if (base::ContainsKey(provider_clients_, provider_id))
provider_clients_.erase(provider_id);
}
@@ -746,25 +747,25 @@ void ServiceWorkerDispatcher::OnPostMessage(
void ServiceWorkerDispatcher::AddServiceWorker(
int handle_id, WebServiceWorkerImpl* worker) {
- DCHECK(!ContainsKey(service_workers_, handle_id));
+ DCHECK(!base::ContainsKey(service_workers_, handle_id));
service_workers_[handle_id] = worker;
}
void ServiceWorkerDispatcher::RemoveServiceWorker(int handle_id) {
- DCHECK(ContainsKey(service_workers_, handle_id));
+ DCHECK(base::ContainsKey(service_workers_, handle_id));
service_workers_.erase(handle_id);
}
void ServiceWorkerDispatcher::AddServiceWorkerRegistration(
int registration_handle_id,
WebServiceWorkerRegistrationImpl* registration) {
- DCHECK(!ContainsKey(registrations_, registration_handle_id));
+ DCHECK(!base::ContainsKey(registrations_, registration_handle_id));
registrations_[registration_handle_id] = registration;
}
void ServiceWorkerDispatcher::RemoveServiceWorkerRegistration(
int registration_handle_id) {
- DCHECK(ContainsKey(registrations_, registration_handle_id));
+ DCHECK(base::ContainsKey(registrations_, registration_handle_id));
registrations_.erase(registration_handle_id);
}
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | content/child/worker_thread_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698