Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2756)

Unified Diff: base/sys_info_mac.cc

Issue 10914060: Refine systemInfo.cpu API defintions and provide systemInfo.cpu.get impl for Windows and Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/sys_info_mac.cc
diff --git a/base/sys_info_mac.cc b/base/sys_info_mac.cc
index 1a1d23c236f6856ebb55157a0dcd56706ca4d6ef..e47d52908d12260d00c144551fa5d4104cdb0b76 100644
--- a/base/sys_info_mac.cc
+++ b/base/sys_info_mac.cc
@@ -54,4 +54,10 @@ int64 SysInfo::AmountOfPhysicalMemory() {
return static_cast<int64>(hostinfo.max_mem);
}
+// static
+std::string SysInfo::CPUModelName() {
+ // TODO(hongbo): Retrive cpu model name.
Mark Mentovai 2012/09/06 13:39:13 The machdep.cpu.brand_string sysctl is equivalent
Hongbo Min 2012/09/06 14:09:09 Thanks for you hints. The impl is uploaded.
+ return "unknown";
+}
+
} // namespace base
« base/sys_info_linux.cc ('K') | « base/sys_info_linux.cc ('k') | base/sys_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698