Chromium Code Reviews| Index: base/sys_info_ios.mm |
| diff --git a/base/sys_info_ios.mm b/base/sys_info_ios.mm |
| index 48c7bd944841b1f215e44c0cff71a02c1dff54c4..68885c470bd1d374f80de7c84b9505d31f7fc012 100644 |
| --- a/base/sys_info_ios.mm |
| +++ b/base/sys_info_ios.mm |
| @@ -65,4 +65,12 @@ int64 SysInfo::AmountOfPhysicalMemory() { |
| return static_cast<int64>(hostinfo.max_mem); |
| } |
| +// static |
| +std::string SysInfo::CPUModelName() { |
| + char model_name[256] = { 0 }; |
| + size_t len = 256; |
| + sysctlbyname("machdep.cpu.brand_string", &model_name, &len, NULL, 0); |
|
Mark Mentovai
2012/09/06 14:17:56
Need to #include anything?
Hongbo Min
2012/09/06 14:33:45
Done.
|
| + return std::string(model_name); |
| +} |
|
Mark Mentovai
2012/09/06 14:17:56
Other comments here are the same as in the Mac fil
Hongbo Min
2012/09/06 14:33:45
Done.
|
| + |
| } // namespace base |