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: ios/chrome/today_extension/today_metrics_logger.mm

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/serialization/serialization_utils_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/today_extension/today_metrics_logger.mm
diff --git a/ios/chrome/today_extension/today_metrics_logger.mm b/ios/chrome/today_extension/today_metrics_logger.mm
index bb2422bf5ced902d07b71b00c3aca32e6e0ded22..17b47bc3d31419176ab6b55be8fb3d178e4847f8 100644
--- a/ios/chrome/today_extension/today_metrics_logger.mm
+++ b/ios/chrome/today_extension/today_metrics_logger.mm
@@ -20,6 +20,7 @@
#include "components/metrics/metrics_log.h"
#include "components/metrics/metrics_log_uploader.h"
#include "components/metrics/metrics_pref_names.h"
+#include "components/metrics/metrics_provider.h"
#include "components/metrics/metrics_service_client.h"
#include "components/metrics/net/version_utils.h"
#include "components/prefs/json_pref_store.h"
@@ -247,10 +248,10 @@ bool TodayMetricsLogger::CreateNewLog() {
metrics_service_client_.get(),
pref_service_.get()));
- log_->RecordEnvironment(std::vector<metrics::MetricsProvider*>(),
- std::vector<variations::ActiveGroupId>(),
- [install_date longLongValue],
- [enabled_date longLongValue]);
+ log_->RecordEnvironment(
+ std::vector<std::unique_ptr<metrics::MetricsProvider>>(),
+ std::vector<variations::ActiveGroupId>(), [install_date longLongValue],
+ [enabled_date longLongValue]);
return true;
}
« no previous file with comments | « components/metrics/serialization/serialization_utils_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698