Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3197)

Unified Diff: chrome/browser/bug_report_util.cc

Issue 355013: Add OS version information to the bug report utility for the Mac version.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/bug_report_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bug_report_util.cc
===================================================================
--- chrome/browser/bug_report_util.cc (revision 30813)
+++ chrome/browser/bug_report_util.cc (working copy)
@@ -71,9 +71,13 @@
} 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
}
« no previous file with comments | « chrome/browser/bug_report_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698