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

Unified Diff: components/metrics/daily_event.cc

Issue 1906173002: Convert //components/metrics from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/daily_event_unittest.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 2ab549092513ed1d29b5303557a4a4a6f754e266..900a1d234c05addefd113badbcac0193f527ca9e 100644
--- a/components/metrics/daily_event.cc
+++ b/components/metrics/daily_event.cc
@@ -56,7 +56,7 @@ void DailyEvent::RegisterPref(PrefRegistrySimple* registry,
registry->RegisterInt64Pref(pref_name, base::Time().ToInternalValue());
}
-void DailyEvent::AddObserver(scoped_ptr<DailyEvent::Observer> observer) {
+void DailyEvent::AddObserver(std::unique_ptr<DailyEvent::Observer> observer) {
DVLOG(2) << "DailyEvent observer added.";
DCHECK(last_fired_.is_null());
observers_.push_back(std::move(observer));
« no previous file with comments | « components/metrics/daily_event.h ('k') | components/metrics/daily_event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698