summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bug_report_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/bug_report_util.cc')
-rw-r--r--chrome/browser/bug_report_util.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/bug_report_util.cc b/chrome/browser/bug_report_util.cc
index f18b2cd5..5db9e48 100644
--- a/chrome/browser/bug_report_util.cc
+++ b/chrome/browser/bug_report_util.cc
@@ -71,9 +71,13 @@ void BugReportUtil::SetOSVersion(std::string *os_version) {
} else {
*os_version = "unknown";
}
+#elif defined(OS_MACOSX)
+ int32 major;
+ int32 minor;
+ int32 bugFix;
+ base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugFix);
+ *os_version = StringPrintf("%d.%d.%d", major, minor, bugFix);
#else
- // Right now, we only get the OS Version for Windows.
- // TODO(mirandac): make this cross-platform.
*os_version = "unknown";
#endif
}