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

Unified Diff: base/mac/mac_util.h

Issue 2288003002: Delete IsAtLeastOS10_9() and IsAtMostOS10_9() (Closed)
Patch Set: Rebase, cancel the more confusing changes Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/mac/mac_util_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/mac_util.h
diff --git a/base/mac/mac_util.h b/base/mac/mac_util.h
index d0173c03cdc941b9352df0f2453491b54c2f823c..62f31305b3a32f0f0db0956f6a741369b702c8d3 100644
--- a/base/mac/mac_util.h
+++ b/base/mac/mac_util.h
@@ -139,7 +139,6 @@ BASE_EXPORT int MacOSXMinorVersion();
return RET;
#define IGNORE_DEPLOYMENT_TARGET(OP, V, RET)
-DEFINE_IS_OS_FUNCS(9, TEST_DEPLOYMENT_TARGET)
DEFINE_IS_OS_FUNCS(10, TEST_DEPLOYMENT_TARGET)
#ifdef MAC_OS_X_VERSION_10_11
@@ -154,6 +153,12 @@ DEFINE_IS_OS_FUNCS(12, TEST_DEPLOYMENT_TARGET)
DEFINE_IS_OS_FUNCS(12, IGNORE_DEPLOYMENT_TARGET)
#endif
+// Straggler for the oldest OS version we support.
+inline bool IsOS10_9() {
+ TEST_DEPLOYMENT_TARGET(>, 9, false)
+ return internal::MacOSXMinorVersion() == 9;
+}
+
#undef IGNORE_DEPLOYMENT_TARGET
#undef TEST_DEPLOYMENT_TARGET
#undef DEFINE_IS_OS_FUNCS
« no previous file with comments | « no previous file | base/mac/mac_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698