| Index: base/sys_info_mac.cc
|
| diff --git a/base/sys_info_mac.cc b/base/sys_info_mac.cc
|
| index 3a936890342b94d37ddccdad1d5f19ecfe28785a..330fcaa3ce648669365d12870256ab69ae0c3bb1 100644
|
| --- a/base/sys_info_mac.cc
|
| +++ b/base/sys_info_mac.cc
|
| @@ -12,6 +12,7 @@
|
| #include <sys/types.h>
|
|
|
| #include "base/logging.h"
|
| +#include "base/mac/scoped_mach_port.h"
|
| #include "base/stringprintf.h"
|
|
|
| namespace base {
|
| @@ -44,7 +45,8 @@ void SysInfo::OperatingSystemVersionNumbers(int32* major_version,
|
| int64 SysInfo::AmountOfPhysicalMemory() {
|
| struct host_basic_info hostinfo;
|
| mach_msg_type_number_t count = HOST_BASIC_INFO_COUNT;
|
| - int result = host_info(mach_host_self(),
|
| + base::mac::ScopedMachPort<host_name_port_t> host(mach_host_self());
|
| + int result = host_info(host,
|
| HOST_BASIC_INFO,
|
| reinterpret_cast<host_info_t>(&hostinfo),
|
| &count);
|
|
|