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

Unified Diff: components/metrics/metrics_service.cc

Issue 2440303002: Remove usage of FOR_EACH_OBSERVER macro in components/ (Closed)
Patch Set: remove superfluous return 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 | « components/metrics/leak_detector/leak_detector.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_service.cc
diff --git a/components/metrics/metrics_service.cc b/components/metrics/metrics_service.cc
index fb49c5cc6d0a0a7ef3bf31f70246b00c80cabd08..098e20bc1628f3bf099672fd8ebbf9742374ab1b 100644
--- a/components/metrics/metrics_service.cc
+++ b/components/metrics/metrics_service.cc
@@ -1147,9 +1147,10 @@ void MetricsService::CheckForClonedInstall(
}
void MetricsService::NotifySyntheticTrialObservers() {
- FOR_EACH_OBSERVER(variations::SyntheticTrialObserver,
- synthetic_trial_observer_list_,
- OnSyntheticTrialsChanged(synthetic_trial_groups_));
+ for (variations::SyntheticTrialObserver& observer :
+ synthetic_trial_observer_list_) {
+ observer.OnSyntheticTrialsChanged(synthetic_trial_groups_);
+ }
}
void MetricsService::GetSyntheticFieldTrialsOlderThan(
« no previous file with comments | « components/metrics/leak_detector/leak_detector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698