mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-16 12:12:47 +08:00
5412beb633
MacOSXMinorVersion reported just the “y” value for an OS version 10.y.z. This is no longer sufficient to identify OS versions accurately in macOS 11. A new MacOSVersionNumber function reports the full OS version as “xxyyzz” for an OS version x.y.z. This is the same format used by <Availability.h> __MAC_* macros since 10.10. MacOSXVersion is also renamed to MacOSVersionComponents for disambiguation and proper modern nomenclature. Bug: crashpad:347 Test: crashpad_snapshot_test SystemSnapshotMacTest.OSVersion, crashpad_util_test MacUtil.MacOSVersionNumber Change-Id: I66421954f021c0627095474cb26359970fcd9101 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2386386 Commit-Queue: Mark Mentovai <mark@chromium.org> Reviewed-by: Robert Sesek <rsesek@chromium.org>