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

Unified Diff: components/metrics/daily_event.h

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 | « chromecast/browser/metrics/external_metrics.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 18591a7036e9a9ee56117e1c0fb98fac41a91087..4f283011f13672d8b239be35db6f53699383f362 100644
--- a/components/metrics/daily_event.h
+++ b/components/metrics/daily_event.h
@@ -6,9 +6,9 @@
#define COMPONENTS_METRICS_DAILY_EVENT_H_
#include <memory>
+#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
#include "base/time/time.h"
class PrefRegistrySimple;
@@ -80,7 +80,7 @@ class DailyEvent {
std::string histogram_name_;
// A list of observers.
- ScopedVector<Observer> observers_;
+ std::vector<std::unique_ptr<Observer>> observers_;
// The time that the daily event was last fired.
base::Time last_fired_;
« no previous file with comments | « chromecast/browser/metrics/external_metrics.cc ('k') | components/metrics/daily_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698