summaryrefslogtreecommitdiffstats
path: root/base/ios
diff options
context:
space:
mode:
Diffstat (limited to 'base/ios')
-rw-r--r--base/ios/ios_util.h7
-rw-r--r--base/ios/ios_util.mm4
2 files changed, 9 insertions, 2 deletions
diff --git a/base/ios/ios_util.h b/base/ios/ios_util.h
index 7cc7918..7e2e621 100644
--- a/base/ios/ios_util.h
+++ b/base/ios/ios_util.h
@@ -11,10 +11,13 @@
namespace base {
namespace ios {
-// Returns whether the operation system is iOS 6 or later.
+// Returns whether the operating system is iOS 6 or later.
BASE_EXPORT bool IsRunningOnIOS6OrLater();
-// Returns whether the operation system is at the given version or later.
+// Returns whether the operating system is iOS 7 or later.
+BASE_EXPORT bool IsRunningOnIOS7OrLater();
+
+// Returns whether the operating system is at the given version or later.
BASE_EXPORT bool IsRunningOnOrLater(int32 major, int32 minor, int32 bug_fix);
} // namespace ios
diff --git a/base/ios/ios_util.mm b/base/ios/ios_util.mm
index 2790865..a76911017f 100644
--- a/base/ios/ios_util.mm
+++ b/base/ios/ios_util.mm
@@ -24,6 +24,10 @@ bool IsRunningOnIOS6OrLater() {
return IsRunningOnOrLater(6, 0, 0);
}
+bool IsRunningOnIOS7OrLater() {
+ return IsRunningOnOrLater(7, 0, 0);
+}
+
bool IsRunningOnOrLater(int32 major, int32 minor, int32 bug_fix) {
static const int32* current_version = OSVersionAsArray();
int32 version[] = { major, minor, bug_fix };