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

Unified Diff: components/metrics/daily_event.cc

Issue 1159883003: Substituting pattern ScopedVector push_back(ptr.release()) with push_back(ptr.Pass()) in components… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | components/metrics/metrics_service.cc » ('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 b9bc62a4e13d08399a66f925f7106e9a152372e5..86899c746dcf23a0cccf2826c5a262fedf246561 100644
--- a/components/metrics/daily_event.cc
+++ b/components/metrics/daily_event.cc
@@ -58,7 +58,7 @@ void DailyEvent::RegisterPref(PrefRegistrySimple* registry,
void DailyEvent::AddObserver(scoped_ptr<DailyEvent::Observer> observer) {
DVLOG(2) << "DailyEvent observer added.";
DCHECK(last_fired_.is_null());
- observers_.push_back(observer.release());
+ observers_.push_back(observer.Pass());
}
void DailyEvent::CheckInterval() {
« no previous file with comments | « no previous file | components/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698