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

Unified Diff: base/sys_info.h

Issue 11031066: Adding utility method to test the version of the OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix namespace Created 8 years, 2 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: base/sys_info.h
diff --git a/base/sys_info.h b/base/sys_info.h
index e155285f3e2b0ac2165f99819229231117eb2dd6..92038feb7fe3f8cc6817072021ba57f9e1e1a114 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -100,6 +100,17 @@ class BASE_EXPORT SysInfo {
static int DalvikHeapSizeMB();
#endif // defined(OS_ANDROID)
+
+#if defined(OS_IOS)
+ // Running on iOS 5 or later?
+ static bool IsRunningOnIOS5OrLater();
+
+ // Running on iOS 6 or later?
+ static bool IsRunningOnIOS6OrLater();
+
+ // Running on a specific iOS version or later.
+ static bool IsRunningOnOrLater(int major, int minor, int bugFix);
+#endif // defined(OS_IOS)
};
} // namespace base
« base/ios/device_util.mm ('K') | « base/ios/device_util.mm ('k') | base/sys_info_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698