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

Unified Diff: base/process/process_metrics.h

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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 | « base/process/process_info_win.cc ('k') | base/process/process_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_metrics.h
diff --git a/base/process/process_metrics.h b/base/process/process_metrics.h
index 9c868ccbce2b6aeec5e21144365bb66de0410cc1..8d4e51b517d78ed4cb497b983cadb8325f35addc 100644
--- a/base/process/process_metrics.h
+++ b/base/process/process_metrics.h
@@ -267,7 +267,7 @@ struct BASE_EXPORT SystemMemoryInfoKB {
SystemMemoryInfoKB(const SystemMemoryInfoKB& other);
// Serializes the platform specific fields to value.
- scoped_ptr<Value> ToValue() const;
+ std::unique_ptr<Value> ToValue() const;
int total;
int free;
@@ -343,7 +343,7 @@ struct BASE_EXPORT SystemDiskInfo {
SystemDiskInfo(const SystemDiskInfo& other);
// Serializes the platform specific fields to value.
- scoped_ptr<Value> ToValue() const;
+ std::unique_ptr<Value> ToValue() const;
uint64_t reads;
uint64_t reads_merged;
@@ -380,7 +380,7 @@ struct BASE_EXPORT SwapInfo {
}
// Serializes the platform specific fields to value.
- scoped_ptr<Value> ToValue() const;
+ std::unique_ptr<Value> ToValue() const;
uint64_t num_reads;
uint64_t num_writes;
@@ -404,7 +404,7 @@ class SystemMetrics {
static SystemMetrics Sample();
// Serializes the system metrics to value.
- scoped_ptr<Value> ToValue() const;
+ std::unique_ptr<Value> ToValue() const;
private:
FRIEND_TEST_ALL_PREFIXES(SystemMetricsTest, SystemMetrics);
« no previous file with comments | « base/process/process_info_win.cc ('k') | base/process/process_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698