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

Unified Diff: base/ios/ios_util.mm

Issue 604763002: New function IsRunningOnIOS8OrLater (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « base/ios/ios_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/ios/ios_util.mm
diff --git a/base/ios/ios_util.mm b/base/ios/ios_util.mm
index 0f106de566dc1d26f16d726fa0165de713139a83..91fce0cc273d30880dc452684a4cf4c8dced4003 100644
--- a/base/ios/ios_util.mm
+++ b/base/ios/ios_util.mm
@@ -24,6 +24,10 @@ bool IsRunningOnIOS7OrLater() {
return IsRunningOnOrLater(7, 0, 0);
}
+bool IsRunningOnIOS8OrLater() {
+ return IsRunningOnOrLater(8, 0, 0);
+}
+
bool IsRunningOnOrLater(int32 major, int32 minor, int32 bug_fix) {
static const int32* current_version = OSVersionAsArray();
int32 version[] = { major, minor, bug_fix };
« no previous file with comments | « base/ios/ios_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698