summaryrefslogtreecommitdiffstats
path: root/base/sys_info.h
diff options
context:
space:
mode:
authorjeremy <jeremy@chromium.org>2014-11-06 10:47:10 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-06 18:47:23 +0000
commitba4eca9bf6691e4ed55eee55a0bcac1a932b7688 (patch)
treef0d265c69ef707893ca877a8642176d58cb04041 /base/sys_info.h
parent5fc1223ad2f83c6ee3b285a73f86f927f3e348e4 (diff)
downloadchromium_src-ba4eca9bf6691e4ed55eee55a0bcac1a932b7688.zip
chromium_src-ba4eca9bf6691e4ed55eee55a0bcac1a932b7688.tar.gz
chromium_src-ba4eca9bf6691e4ed55eee55a0bcac1a932b7688.tar.bz2
UMA: Set Hardware model class on Mac.
Record the hardware model on Mac e.g. MacPro1,1 . BUG=429487 Review URL: https://codereview.chromium.org/699173002 Cr-Commit-Position: refs/heads/master@{#303054}
Diffstat (limited to 'base/sys_info.h')
-rw-r--r--base/sys_info.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/sys_info.h b/base/sys_info.h
index d24acdf..660343d 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -51,6 +51,12 @@ class BASE_EXPORT SysInfo {
// Returns system uptime in milliseconds.
static int64 Uptime();
+ // Returns a descriptive string for the current machine model or an empty
+ // string if machime model is unknown or an error occured.
+ // e.g. MacPro1,1 on Mac.
+ // Only implemented on OS X, will return an empty string on other platforms.
+ static std::string HardwareModelName();
+
// Returns the name of the host operating system.
static std::string OperatingSystemName();