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

Unified Diff: components/metrics/daily_event.h

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/cloned_install_detector_unittest.cc ('k') | components/metrics/daily_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/daily_event.h
diff --git a/components/metrics/daily_event.h b/components/metrics/daily_event.h
index 24b31dc58eaf1a38fd622a1ed7ba9d99d97504ae..18591a7036e9a9ee56117e1c0fb98fac41a91087 100644
--- a/components/metrics/daily_event.h
+++ b/components/metrics/daily_event.h
@@ -5,8 +5,9 @@
#ifndef COMPONENTS_METRICS_DAILY_EVENT_H_
#define COMPONENTS_METRICS_DAILY_EVENT_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/time/time.h"
@@ -53,7 +54,7 @@ class DailyEvent {
// Adds a observer to be notified when a day elapses. All observers should
// be registered before the the DailyEvent starts checking time.
- void AddObserver(scoped_ptr<Observer> observer);
+ void AddObserver(std::unique_ptr<Observer> observer);
// Checks if a day has elapsed. If it has, OnDailyEvent will be called on
// all observers.
« no previous file with comments | « components/metrics/cloned_install_detector_unittest.cc ('k') | components/metrics/daily_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698