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

Unified Diff: components/metrics/metrics_service_unittest.cc

Issue 2691803002: Remove ScopedVector in //component/metrics (Closed)
Patch Set: Remove ScopedVector in //component/metrics 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
Index: components/metrics/metrics_service_unittest.cc
diff --git a/components/metrics/metrics_service_unittest.cc b/components/metrics/metrics_service_unittest.cc
index fa8a18522c4b75a80c9e41ce076d866a9dbadf9f..6af562d2eee3552139de1581718fadbb1f875cba 100644
--- a/components/metrics/metrics_service_unittest.cc
+++ b/components/metrics/metrics_service_unittest.cc
@@ -206,7 +206,7 @@ TEST_F(MetricsServiceTest, InitialStabilityLogAtProviderRequest) {
// saved from a previous session.
TestMetricsServiceClient client;
TestMetricsLog log("client", 1, &client, GetLocalState());
- log.RecordEnvironment(std::vector<MetricsProvider*>(),
+ log.RecordEnvironment(std::vector<std::unique_ptr<MetricsProvider>>(),
std::vector<variations::ActiveGroupId>(), 0, 0);
// Record stability build time and version from previous session, so that
@@ -278,7 +278,7 @@ TEST_F(MetricsServiceTest, InitialStabilityLogAfterCrash) {
// saved from a previous session.
TestMetricsServiceClient client;
TestMetricsLog log("client", 1, &client, GetLocalState());
- log.RecordEnvironment(std::vector<MetricsProvider*>(),
+ log.RecordEnvironment(std::vector<std::unique_ptr<MetricsProvider>>(),
std::vector<variations::ActiveGroupId>(), 0, 0);
// Record stability build time and version from previous session, so that

Powered by Google App Engine
This is Rietveld 408576698