| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/sys_info.h" | 5 #include "base/sys_info.h" |
| 6 | 6 |
| 7 #include <ApplicationServices/ApplicationServices.h> | 7 #include <ApplicationServices/ApplicationServices.h> |
| 8 #include <CoreServices/CoreServices.h> | 8 #include <CoreServices/CoreServices.h> |
| 9 #include <mach/mach_host.h> | 9 #include <mach/mach_host.h> |
| 10 #include <mach/mach_init.h> | 10 #include <mach/mach_init.h> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 reinterpret_cast<host_info_t>(&hostinfo), | 47 reinterpret_cast<host_info_t>(&hostinfo), |
| 48 &count); | 48 &count); |
| 49 if (result != KERN_SUCCESS) { | 49 if (result != KERN_SUCCESS) { |
| 50 NOTREACHED(); | 50 NOTREACHED(); |
| 51 return 0; | 51 return 0; |
| 52 } | 52 } |
| 53 DCHECK_EQ(HOST_BASIC_INFO_COUNT, count); | 53 DCHECK_EQ(HOST_BASIC_INFO_COUNT, count); |
| 54 return static_cast<int64>(hostinfo.max_mem); | 54 return static_cast<int64>(hostinfo.max_mem); |
| 55 } | 55 } |
| 56 | 56 |
| 57 // static |
| 58 std::string SysInfo::CPUModelName() { |
| 59 // TODO(hongbo): Retrive cpu model name. |
| 60 return "unknown"; |
| 61 } |
| 62 |
| 57 } // namespace base | 63 } // namespace base |
| OLD | NEW |