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

Unified Diff: content/browser/tracing/tracing_controller_impl.cc

Issue 2422923002: Reduce usage of FOR_EACH_OBSERVER macro in content/browser (Closed)
Patch Set: skip cases in 2418143004 and 2418373002 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 | « content/browser/site_instance_impl.cc ('k') | content/browser/webrtc/webrtc_internals.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/tracing_controller_impl.cc
diff --git a/content/browser/tracing/tracing_controller_impl.cc b/content/browser/tracing/tracing_controller_impl.cc
index 2ca4738857a0c9e97c7b525bf1e7ecbdb8721c7c..dd01ac66af2a13523ef02cb7ffe5bc82452da445 100644
--- a/content/browser/tracing/tracing_controller_impl.cc
+++ b/content/browser/tracing/tracing_controller_impl.cc
@@ -532,8 +532,8 @@ void TracingControllerImpl::AddTraceMessageFilter(
TraceLog::GetInstance()->GetCurrentTraceConfig());
}
- FOR_EACH_OBSERVER(TraceMessageFilterObserver, trace_message_filter_observers_,
- OnTraceMessageFilterAdded(trace_message_filter));
+ for (auto& observer : trace_message_filter_observers_)
+ observer.OnTraceMessageFilterAdded(trace_message_filter);
}
void TracingControllerImpl::RemoveTraceMessageFilter(
« no previous file with comments | « content/browser/site_instance_impl.cc ('k') | content/browser/webrtc/webrtc_internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698