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

Unified Diff: base/ios/ios_util.mm

Issue 2077693002: Add iOS10 helper to determine current running iOS version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 bc10d19e8f6a54931a38915f83d831e14f1597ac..7af85444ada6a9fa5520d8b99ef4070e54a4b068 100644
--- a/base/ios/ios_util.mm
+++ b/base/ios/ios_util.mm
@@ -37,6 +37,10 @@ bool IsRunningOnIOS9OrLater() {
return IsRunningOnOrLater(9, 0, 0);
}
+bool IsRunningOnIOS10OrLater() {
+ return IsRunningOnOrLater(10, 0, 0);
+}
+
bool IsRunningOnOrLater(int32_t major, int32_t minor, int32_t bug_fix) {
static const int32_t* current_version = OSVersionAsArray();
int32_t 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