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

Unified Diff: third_party/WebKit/Source/platform/mac/VersionUtilMac.mm

Issue 2271653006: base::mac::IsOSSierra() -> base::mac::IsOS10_12(), etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: 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
Index: third_party/WebKit/Source/platform/mac/VersionUtilMac.mm
diff --git a/third_party/WebKit/Source/platform/mac/VersionUtilMac.mm b/third_party/WebKit/Source/platform/mac/VersionUtilMac.mm
index 7eb98199fbcbe38b010abd28e7b9c1f295ffbc68..17595fdf8763c27024c6b30dcff4f39f71fb3ac3 100644
--- a/third_party/WebKit/Source/platform/mac/VersionUtilMac.mm
+++ b/third_party/WebKit/Source/platform/mac/VersionUtilMac.mm
@@ -48,37 +48,12 @@ int MacOSXMinorVersionInternal()
return darwinMajorVersion - 4;
}
+} // namespace
+
// Returns the running system's Mac OS X minor version. This is the |y| value
// in 10.y or 10.y.z.
-int MacOSXMinorVersion()
+int blink::internal::MacOSXMinorVersion()
{
static int minorVersion = MacOSXMinorVersionInternal();
return minorVersion;
}
-
-enum {
- MAVERICKS_MINOR_VERSION = 9,
- YOSEMITE_MINOR_VERSION = 10,
- EL_CAPITAN_MINOR_VERSION = 11,
-};
-
-} // namespace
-
-namespace blink {
-
-bool IsOSMavericks()
-{
- return MacOSXMinorVersion() == MAVERICKS_MINOR_VERSION;
-}
-
-bool IsOSYosemite()
-{
- return MacOSXMinorVersion() == YOSEMITE_MINOR_VERSION;
-}
-
-bool IsOSElCapitan()
-{
- return MacOSXMinorVersion() == EL_CAPITAN_MINOR_VERSION;
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698