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

Unified Diff: components/metrics/file_metrics_provider.h

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.cc ('k') | components/metrics/file_metrics_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/file_metrics_provider.h
diff --git a/components/metrics/file_metrics_provider.h b/components/metrics/file_metrics_provider.h
index 88c025f0ec1c668d06d592673350884d2576efac..c7aa11a3b55ab2ced9a2aa758573e6c503ec73b1 100644
--- a/components/metrics/file_metrics_provider.h
+++ b/components/metrics/file_metrics_provider.h
@@ -6,12 +6,12 @@
#define COMPONENTS_METRICS_FILE_METRICS_PROVIDER_H_
#include <list>
+#include <memory>
#include <string>
#include "base/callback.h"
#include "base/files/file_path.h"
#include "base/gtest_prod_util.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/thread_checker.h"
#include "base/time/time.h"
@@ -101,7 +101,7 @@ class FileMetricsProvider : public metrics::MetricsProvider {
// Information about files being monitored; defined and used exclusively
// inside the .cc file.
struct FileInfo;
- using FileInfoList = std::list<scoped_ptr<FileInfo>>;
+ using FileInfoList = std::list<std::unique_ptr<FileInfo>>;
// Checks a list of files (on a task-runner allowed to do I/O) to see if
// any should be processed during the next histogram collection.
« no previous file with comments | « components/metrics/data_use_tracker.cc ('k') | components/metrics/file_metrics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698