summaryrefslogtreecommitdiffstats
path: root/third_party/apple_apsl
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 /third_party/apple_apsl
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 'third_party/apple_apsl')
-rw-r--r--third_party/apple_apsl/CFBase.h4
-rw-r--r--third_party/apple_apsl/README.chromium4
2 files changed, 4 insertions, 4 deletions
diff --git a/third_party/apple_apsl/CFBase.h b/third_party/apple_apsl/CFBase.h
index 4c52e0e..7942966 100644
--- a/third_party/apple_apsl/CFBase.h
+++ b/third_party/apple_apsl/CFBase.h
@@ -30,7 +30,7 @@
#include "CFRuntime.h"
-struct ChromeCFAllocator9and10 {
+struct ChromeCFAllocatorLeopards {
ChromeCFRuntimeBase _base;
#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED
size_t (*size)(struct _malloc_zone_t *zone, const void *ptr); /* returns the size of a block or 0 if not in this zone; must be fast, especially for negative answers */
@@ -51,7 +51,7 @@ struct ChromeCFAllocator9and10 {
};
// TODO(avi): update upon source release; http://crbug.com/74589
-struct ChromeCFAllocator11 {
+struct ChromeCFAllocatorLion {
ChromeCFRuntimeBase _base;
// CFAllocator in Darwin 9 included a complete copy of _malloc_zone_t. The
// version in Darwin 10 had an abbreviated _malloc_zone_t that ended after the
diff --git a/third_party/apple_apsl/README.chromium b/third_party/apple_apsl/README.chromium
index f183768..2f014a2 100644
--- a/third_party/apple_apsl/README.chromium
+++ b/third_party/apple_apsl/README.chromium
@@ -31,9 +31,9 @@ Modifications:
- Added an #include of the CFRuntime.h file.
- Removed everything but the definition of __CFAllocator.
- Modified the reference of CFRuntimeBase to ChromeCFRuntimeBase.
-- Renamed __CFAllocator to ChromeCFAllocator9and10 to avoid possible name
+- Renamed __CFAllocator to ChromeCFAllocatorLeopards to avoid possible name
conflicts.
-- Added a presumed definition of ChromeCFAllocator11.
+- Added a presumed definition of ChromeCFAllocatorLion.
cssmapplePriv.h from:
http://www.opensource.apple.com/source/libsecurity_cssm/libsecurity_cssm-31536/lib/cssmapplePriv.h