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() { |