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

Side by Side Diff: base/mac/mac_util.h

Issue 1849343003: mac: Remove IsOSSnowLeopard(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: err Created 4 years, 8 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | base/mac/mac_util.mm » ('j') | base/mac/mac_util.mm » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_MAC_MAC_UTIL_H_ 5 #ifndef BASE_MAC_MAC_UTIL_H_
6 #define BASE_MAC_MAC_UTIL_H_ 6 #define BASE_MAC_MAC_UTIL_H_
7 7
8 #include <AvailabilityMacros.h> 8 #include <AvailabilityMacros.h>
9 #include <Carbon/Carbon.h> 9 #include <Carbon/Carbon.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 // Remove the quarantine xattr from the given file. Returns false if there was 113 // Remove the quarantine xattr from the given file. Returns false if there was
114 // an error, or true otherwise. 114 // an error, or true otherwise.
115 BASE_EXPORT bool RemoveQuarantineAttribute(const FilePath& file_path); 115 BASE_EXPORT bool RemoveQuarantineAttribute(const FilePath& file_path);
116 116
117 // Run-time OS version checks. Use these instead of 117 // Run-time OS version checks. Use these instead of
118 // base::SysInfo::OperatingSystemVersionNumbers. Prefer the "OrEarlier" and 118 // base::SysInfo::OperatingSystemVersionNumbers. Prefer the "OrEarlier" and
119 // "OrLater" variants to those that check for a specific version, unless you 119 // "OrLater" variants to those that check for a specific version, unless you
120 // know for sure that you need to check for a specific version. 120 // know for sure that you need to check for a specific version.
121 121
122 // Snow Leopard is Mac OS X 10.6, Darwin 10.
123 BASE_EXPORT bool IsOSSnowLeopard();
124
125 // Lion is Mac OS X 10.7, Darwin 11. 122 // Lion is Mac OS X 10.7, Darwin 11.
126 BASE_EXPORT bool IsOSLion(); 123 BASE_EXPORT bool IsOSLion();
127 BASE_EXPORT bool IsOSLionOrEarlier(); 124 BASE_EXPORT bool IsOSLionOrEarlier();
128 BASE_EXPORT bool IsOSLionOrLater(); 125 BASE_EXPORT bool IsOSLionOrLater();
129 126
130 // Mountain Lion is Mac OS X 10.8, Darwin 12. 127 // Mountain Lion is Mac OS X 10.8, Darwin 12.
131 BASE_EXPORT bool IsOSMountainLion(); 128 BASE_EXPORT bool IsOSMountainLion();
132 BASE_EXPORT bool IsOSMountainLionOrEarlier(); 129 BASE_EXPORT bool IsOSMountainLionOrEarlier();
133 BASE_EXPORT bool IsOSMountainLionOrLater(); 130 BASE_EXPORT bool IsOSMountainLionOrLater();
134 131
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // If any error occurs, none of the input pointers are touched. 231 // If any error occurs, none of the input pointers are touched.
235 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, 232 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident,
236 std::string* type, 233 std::string* type,
237 int32_t* major, 234 int32_t* major,
238 int32_t* minor); 235 int32_t* minor);
239 236
240 } // namespace mac 237 } // namespace mac
241 } // namespace base 238 } // namespace base
242 239
243 #endif // BASE_MAC_MAC_UTIL_H_ 240 #endif // BASE_MAC_MAC_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/mac/mac_util.mm » ('j') | base/mac/mac_util.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698