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

Unified Diff: content/child/worker_thread_registry.cc

Issue 2422933002: Reduce usage of FOR_EACH_OBSERVER macro in content/ (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | content/public/test/mock_download_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/worker_thread_registry.cc
diff --git a/content/child/worker_thread_registry.cc b/content/child/worker_thread_registry.cc
index cfc9d837b503333ee8349e095ed9bc02fad1b214..f3d6fc5b3e5216b7eca667bc0fdd5fa04952cf1d 100644
--- a/content/child/worker_thread_registry.cc
+++ b/content/child/worker_thread_registry.cc
@@ -107,8 +107,9 @@ void WorkerThreadRegistry::DidStartCurrentWorkerThread() {
void WorkerThreadRegistry::WillStopCurrentWorkerThread() {
WorkerThreadObservers* observers = g_observers_tls.Pointer()->Get();
DCHECK(observers);
- FOR_EACH_OBSERVER(WorkerThread::Observer, *observers,
- WillStopCurrentWorkerThread());
+ for (auto& observer : *observers)
+ observer.WillStopCurrentWorkerThread();
+
{
base::AutoLock locker(task_runner_map_lock_);
task_runner_map_.erase(WorkerThread::GetCurrentId());
« no previous file with comments | « no previous file | content/public/test/mock_download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698