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

Unified Diff: components/metrics/metrics_service_unittest.cc

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 | « components/metrics/metrics_service.cc ('k') | components/metrics/serialization/serialization_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_service_unittest.cc
diff --git a/components/metrics/metrics_service_unittest.cc b/components/metrics/metrics_service_unittest.cc
index f1108c799dffe658e9abb61f3abd3a4c71846d0c..f4a264cafe10ebc3bcda4940279ee6b5da9065cd 100644
--- a/components/metrics/metrics_service_unittest.cc
+++ b/components/metrics/metrics_service_unittest.cc
@@ -207,7 +207,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
@@ -279,7 +279,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
« no previous file with comments | « components/metrics/metrics_service.cc ('k') | components/metrics/serialization/serialization_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698