| Index: base/process/process_metrics_freebsd.cc
|
| diff --git a/base/process/process_metrics_freebsd.cc b/base/process/process_metrics_freebsd.cc
|
| index 5fd93cbe1c99d3fb16ca3d9968ff46e681f12ac5..686f6338724da2e11a08ff3c5c4231b833029ccd 100644
|
| --- a/base/process/process_metrics_freebsd.cc
|
| +++ b/base/process/process_metrics_freebsd.cc
|
| @@ -10,20 +10,21 @@
|
| #include <unistd.h>
|
|
|
| #include "base/macros.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/sys_info.h"
|
|
|
| namespace base {
|
|
|
| ProcessMetrics::ProcessMetrics(ProcessHandle process)
|
| : process_(process),
|
| + processor_count_(SysInfo::NumberOfProcessors()),
|
| last_system_time_(0),
|
| - last_cpu_(0) {
|
| - processor_count_ = base::SysInfo::NumberOfProcessors();
|
| -}
|
| + last_cpu_(0) {}
|
|
|
| // static
|
| -ProcessMetrics* ProcessMetrics::CreateProcessMetrics(ProcessHandle process) {
|
| - return new ProcessMetrics(process);
|
| +std::unique_ptr<ProcessMetrics> ProcessMetrics::CreateProcessMetrics(
|
| + ProcessHandle process) {
|
| + return WrapUnique(new ProcessMetrics(process));
|
| }
|
|
|
| size_t ProcessMetrics::GetPagefileUsage() const {
|
|
|