| Index: base/process/process_metrics_mac.cc
|
| diff --git a/base/process/process_metrics_mac.cc b/base/process/process_metrics_mac.cc
|
| index 82acb0636b94bd941fd3861a05c0c4856a7f18c3..a8957e288dff29ebd6d9ac4ec3dc78d9b6c0198e 100644
|
| --- a/base/process/process_metrics_mac.cc
|
| +++ b/base/process/process_metrics_mac.cc
|
| @@ -7,6 +7,8 @@
|
| #include <mach/mach.h>
|
| #include <mach/mach_vm.h>
|
| #include <mach/shared_region.h>
|
| +#include <stddef.h>
|
| +#include <stdint.h>
|
| #include <sys/sysctl.h>
|
|
|
| #include "base/containers/hash_tables.h"
|
| @@ -284,7 +286,7 @@ double ProcessMetrics::GetCPUUsage() {
|
| timeradd(&system_timeval, &task_timeval, &task_timeval);
|
|
|
| TimeTicks time = TimeTicks::Now();
|
| - int64 task_time = TimeValToMicroseconds(task_timeval);
|
| + int64_t task_time = TimeValToMicroseconds(task_timeval);
|
|
|
| if (last_system_time_ == 0) {
|
| // First call, just set the last values.
|
| @@ -293,8 +295,8 @@ double ProcessMetrics::GetCPUUsage() {
|
| return 0;
|
| }
|
|
|
| - int64 system_time_delta = task_time - last_system_time_;
|
| - int64 time_delta = (time - last_cpu_time_).InMicroseconds();
|
| + int64_t system_time_delta = task_time - last_system_time_;
|
| + int64_t time_delta = (time - last_cpu_time_).InMicroseconds();
|
| DCHECK_NE(0U, time_delta);
|
| if (time_delta == 0)
|
| return 0;
|
|
|