summaryrefslogtreecommitdiffstats
path: root/base/sys_info_win.cc
diff options
context:
space:
mode:
authorhongbo.min@intel.com <hongbo.min@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-08 09:53:01 +0000
committerhongbo.min@intel.com <hongbo.min@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-08 09:53:01 +0000
commitd5df0c8c043a25aa7b7d43f7f6f29198bcf74348 (patch)
treed937d7dc6866099dfc624cbc624020449f792559 /base/sys_info_win.cc
parent4c35f73337302284aaa503dc2d6b2172623687b5 (diff)
downloadchromium_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_win.cc')
-rw-r--r--base/sys_info_win.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/sys_info_win.cc b/base/sys_info_win.cc
index 87ce66d..d8de736 100644
--- a/base/sys_info_win.cc
+++ b/base/sys_info_win.cc
@@ -80,6 +80,11 @@ std::string SysInfo::CPUArchitecture() {
}
// static
+std::string SysInfo::CPUModelName() {
+ return win::OSInfo::GetInstance()->processor_model_name();
+}
+
+// static
size_t SysInfo::VMAllocationGranularity() {
return win::OSInfo::GetInstance()->allocation_granularity();
}