Index: base/mac/mac_util.mm |
diff --git a/base/mac/mac_util.mm b/base/mac/mac_util.mm |
index c2ca83fa738ad023e333100328861a5bf2d59a0a..4108795549c377b57ba32dd8dee927b741a8e474 100644 |
--- a/base/mac/mac_util.mm |
+++ b/base/mac/mac_util.mm |
@@ -448,69 +448,12 @@ int MacOSXMinorVersionInternal() { |
return mac_os_x_minor_version; |
} |
-// Returns the running system's Mac OS X minor version. This is the |y| value |
-// in 10.y or 10.y.z. |
-int MacOSXMinorVersion() { |
- static int mac_os_x_minor_version = MacOSXMinorVersionInternal(); |
- return mac_os_x_minor_version; |
-} |
- |
-enum { |
- MAVERICKS_MINOR_VERSION = 9, |
- YOSEMITE_MINOR_VERSION = 10, |
- EL_CAPITAN_MINOR_VERSION = 11, |
- SIERRA_MINOR_VERSION = 12, |
-}; |
- |
} // namespace |
-#if !defined(BASE_MAC_MAC_UTIL_H_INLINED_GT_10_9) |
-bool IsOSMavericks() { |
- return MacOSXMinorVersion() == MAVERICKS_MINOR_VERSION; |
-} |
-#endif |
- |
-#if !defined(BASE_MAC_MAC_UTIL_H_INLINED_GT_10_10) |
-bool IsOSYosemite() { |
- return MacOSXMinorVersion() == YOSEMITE_MINOR_VERSION; |
-} |
-#endif |
- |
-#if !defined(BASE_MAC_MAC_UTIL_H_INLINED_GE_10_10) |
-bool IsOSYosemiteOrLater() { |
- return MacOSXMinorVersion() >= YOSEMITE_MINOR_VERSION; |
-} |
-#endif |
- |
-#if !defined(BASE_MAC_MAC_UTIL_H_INLINED_GT_10_11) |
-bool IsOSElCapitan() { |
- return MacOSXMinorVersion() == EL_CAPITAN_MINOR_VERSION; |
-} |
-#endif |
- |
-#if !defined(BASE_MAC_MAC_UTIL_H_INLINED_GE_10_11) |
-bool IsOSElCapitanOrLater() { |
- return MacOSXMinorVersion() >= EL_CAPITAN_MINOR_VERSION; |
-} |
-#endif |
- |
-#if !defined(BASE_MAC_MAC_UTIL_H_INLINED_GT_10_12) |
-bool IsOSSierra() { |
- return MacOSXMinorVersion() == SIERRA_MINOR_VERSION; |
-} |
-#endif |
- |
-#if !defined(BASE_MAC_MAC_UTIL_H_INLINED_GE_10_12) |
-bool IsOSSierraOrLater() { |
- return MacOSXMinorVersion() >= SIERRA_MINOR_VERSION; |
-} |
-#endif |
- |
-#if !defined(BASE_MAC_MAC_UTIL_H_INLINED_GT_10_12) |
-bool IsOSLaterThanSierra_DontCallThis() { |
- return MacOSXMinorVersion() > SIERRA_MINOR_VERSION; |
+int internal::MacOSXMinorVersion() { |
Mark Mentovai
2016/08/25 13:58:56
Can we actually write it this way now? I thought w
Sidney San Martín
2016/08/26 00:00:01
It's fine C++-wise, and I couldn't find anything a
|
+ static int mac_os_x_minor_version = MacOSXMinorVersionInternal(); |
+ return mac_os_x_minor_version; |
} |
-#endif |
std::string GetModelIdentifier() { |
std::string return_string; |