diff options
author | hongbo.min@intel.com <hongbo.min@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-08 09:53:01 +0000 |
---|---|---|
committer | hongbo.min@intel.com <hongbo.min@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-08 09:53:01 +0000 |
commit | d5df0c8c043a25aa7b7d43f7f6f29198bcf74348 (patch) | |
tree | d937d7dc6866099dfc624cbc624020449f792559 /base/sys_info.h | |
parent | 4c35f73337302284aaa503dc2d6b2172623687b5 (diff) | |
download | chromium_src-d5df0c8c043a25aa7b7d43f7f6f29198bcf74348.zip chromium_src-d5df0c8c043a25aa7b7d43f7f6f29198bcf74348.tar.gz chromium_src-d5df0c8c043a25aa7b7d43f7f6f29198bcf74348.tar.bz2 |
Refine systemInfo.cpu API and provide systemInfo.cpu.get impl for Windows and Linux.
BUG=136519
TEST=browser_test --gtest_filter=SystemInfoCpuApiTest.*
Review URL: https://chromiumcodereview.appspot.com/10914060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155575 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info.h')
-rw-r--r-- | base/sys_info.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/sys_info.h b/base/sys_info.h index af9f017..e5917f1 100644 --- a/base/sys_info.h +++ b/base/sys_info.h @@ -55,6 +55,10 @@ class BASE_EXPORT SysInfo { // across platforms. static std::string CPUArchitecture(); + // Returns the CPU model name of the system. If it can not be figured out, + // an empty string is returned. + static std::string CPUModelName(); + // Return the smallest amount of memory (in bytes) which the VM system will // allocate. static size_t VMAllocationGranularity(); |