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

Unified Diff: components/metrics/daily_event.cc

Issue 2691803002: Remove ScopedVector in //component/metrics (Closed)
Patch Set: code rebase Created 3 years, 10 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/daily_event.h ('k') | components/metrics/metrics_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/daily_event.cc
diff --git a/components/metrics/daily_event.cc b/components/metrics/daily_event.cc
index 900a1d234c05addefd113badbcac0193f527ca9e..c289a0977f4e468bd52e4e406ec3499a91e9905c 100644
--- a/components/metrics/daily_event.cc
+++ b/components/metrics/daily_event.cc
@@ -96,9 +96,7 @@ void DailyEvent::OnInterval(base::Time now) {
pref_service_->SetInt64(pref_name_, last_fired_.ToInternalValue());
// Notify all observers
- for (ScopedVector<DailyEvent::Observer>::iterator it = observers_.begin();
- it != observers_.end();
- ++it) {
+ for (auto it = observers_.begin(); it != observers_.end(); ++it) {
(*it)->OnDailyEvent();
}
}
« no previous file with comments | « components/metrics/daily_event.h ('k') | components/metrics/metrics_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698