summaryrefslogtreecommitdiffstats
path: root/base/sys_info.h
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-14 18:18:38 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-14 18:18:38 +0000
commitba64e2bae9b1d00777a81231148e0f69909a840c (patch)
tree8d8168983abb8635bfd5e9471169febbc397d3f4 /base/sys_info.h
parent7bf10b0e47e51d9c6d0a5f39a9d0bfad1d78eef4 (diff)
downloadchromium_src-ba64e2bae9b1d00777a81231148e0f69909a840c.zip
chromium_src-ba64e2bae9b1d00777a81231148e0f69909a840c.tar.gz
chromium_src-ba64e2bae9b1d00777a81231148e0f69909a840c.tar.bz2
Improve and unify Mac OS X run-time version checks.
Don't use base::SysInfo::OperatingSystemVersionNumbers, because it calls Gestalt, which has a few bad properties. Introduce new functions that perform specific version checks. BUG=85972 TEST=base_unittests MacUtilTest.IsOSEllipsis Review URL: http://codereview.chromium.org/7144007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89028 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info.h')
-rw-r--r--base/sys_info.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/sys_info.h b/base/sys_info.h
index 863e068..89bd193 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -41,6 +41,11 @@ class BASE_API SysInfo {
// Retrieves detailed numeric values for the OS version.
// TODO(port): Implement a Linux version of this method and enable the
// corresponding unit test.
+ // DON'T USE THIS ON THE MAC OR WINDOWS to determine the current OS release
+ // for OS version-specific feature checks and workarounds. If you must use
+ // an OS version check instead of a feature check, use the base::mac::IsOS*
+ // family from base/mac/mac_util.h, or base::win::GetVersion from
+ // base/win/windows_version.h.
static void OperatingSystemVersionNumbers(int32* major_version,
int32* minor_version,
int32* bugfix_version);