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

Unified Diff: components/metrics/data_use_tracker.cc

Issue 1906173002: Convert //components/metrics from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/data_use_tracker.h ('k') | components/metrics/file_metrics_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/data_use_tracker.cc
diff --git a/components/metrics/data_use_tracker.cc b/components/metrics/data_use_tracker.cc
index a74bdf117eb795ede47e563f9b67f5cfed8d321a..6e3f9b3eb8afd6b77022a3094d01de6216951e6b 100644
--- a/components/metrics/data_use_tracker.cc
+++ b/components/metrics/data_use_tracker.cc
@@ -38,8 +38,9 @@ DataUseTracker::DataUseTracker(PrefService* local_state)
DataUseTracker::~DataUseTracker() {}
// static
-scoped_ptr<DataUseTracker> DataUseTracker::Create(PrefService* local_state) {
- scoped_ptr<DataUseTracker> data_use_tracker;
+std::unique_ptr<DataUseTracker> DataUseTracker::Create(
+ PrefService* local_state) {
+ std::unique_ptr<DataUseTracker> data_use_tracker;
if (variations::GetVariationParamValue("UMA_EnableCellularLogUpload",
"Uma_Quota") != "" &&
variations::GetVariationParamValue("UMA_EnableCellularLogUpload",
« no previous file with comments | « components/metrics/data_use_tracker.h ('k') | components/metrics/file_metrics_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698