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 |