diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-03 21:13:59 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-03 21:13:59 +0000 |
commit | 54821359244e0609d7c86faadf5a1b6d0f5b5388 (patch) | |
tree | 9803f6ab672bbd9e5f35478abb90fac9b4b3b534 /chrome/browser/bug_report_util.cc | |
parent | 0e8ed61c551ff09acf3401804feb7e0409486e76 (diff) | |
download | chromium_src-54821359244e0609d7c86faadf5a1b6d0f5b5388.zip chromium_src-54821359244e0609d7c86faadf5a1b6d0f5b5388.tar.gz chromium_src-54821359244e0609d7c86faadf5a1b6d0f5b5388.tar.bz2 |
Add OS version information to the bug report utility for the Mac version.
BUG= http://crbug.com/26138
TEST= none
Review URL: http://codereview.chromium.org/355013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30867 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bug_report_util.cc')
-rw-r--r-- | chrome/browser/bug_report_util.cc | 8 |
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 } |