Index: base/process/process_metrics_mac.cc |
diff --git a/base/process/process_metrics_mac.cc b/base/process/process_metrics_mac.cc |
index a2ecd8e718531493b2e3373576a701f9515545a1..82acb0636b94bd941fd3861a05c0c4856a7f18c3 100644 |
--- a/base/process/process_metrics_mac.cc |
+++ b/base/process/process_metrics_mac.cc |
@@ -352,7 +352,7 @@ size_t GetSystemCommitCharge() { |
base::mac::ScopedMachSendRight host(mach_host_self()); |
mach_msg_type_number_t count = HOST_VM_INFO_COUNT; |
vm_statistics_data_t data; |
- kern_return_t kr = host_statistics(host, HOST_VM_INFO, |
+ kern_return_t kr = host_statistics(host.get(), HOST_VM_INFO, |
reinterpret_cast<host_info_t>(&data), |
&count); |
if (kr != KERN_SUCCESS) { |
@@ -368,7 +368,7 @@ bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo) { |
struct host_basic_info hostinfo; |
mach_msg_type_number_t count = HOST_BASIC_INFO_COUNT; |
base::mac::ScopedMachSendRight host(mach_host_self()); |
- int result = host_info(host, HOST_BASIC_INFO, |
+ int result = host_info(host.get(), HOST_BASIC_INFO, |
reinterpret_cast<host_info_t>(&hostinfo), &count); |
if (result != KERN_SUCCESS) |
return false; |