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

Unified Diff: base/ios/ios_util.mm

Issue 2942633002: [ios] Adds IsRunningOnIOS11OrLater(). (Closed)
Patch Set: Created 3 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 196d5ef90ae4d81b894c4c23b8d2b87b6e878696..de9adb92ca141a922a78fd2a0da734f9dccbc695 100644
--- a/base/ios/ios_util.mm
+++ b/base/ios/ios_util.mm
@@ -32,6 +32,10 @@ bool IsRunningOnIOS10OrLater() {
return IsRunningOnOrLater(10, 0, 0);
}
+bool IsRunningOnIOS11OrLater() {
+ return IsRunningOnOrLater(11, 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