util: Simplify MacOSVersionNumber [crashpad/crashpad : main]

1 view
Skip to first unread message

Mark Mentovai (Gerrit)

unread,
Jul 29, 2025, 10:58:52 AMJul 29
to Justin Cohen, Christine Hollingsworth, crashp...@chromium.org
Attention needed from Justin Cohen

Mark Mentovai voted and added 1 comment

Votes added by Mark Mentovai

Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Mark Mentovai . resolved

Justin for review. (I checked but don’t see similar code in use on iOS.)

Christine for exposure.

Open in Gerrit

Related details

Attention is currently required from:
  • Justin Cohen
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: crashpad/crashpad
Gerrit-Branch: main
Gerrit-Change-Id: Idb26bb59c124ab2191ef961f01e9691856f2c812
Gerrit-Change-Number: 6798736
Gerrit-PatchSet: 1
Gerrit-Owner: Mark Mentovai <ma...@chromium.org>
Gerrit-Reviewer: Justin Cohen <justi...@chromium.org>
Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
Gerrit-CC: Christine Hollingsworth <chris...@chromium.org>
Gerrit-Attention: Justin Cohen <justi...@chromium.org>
Gerrit-Comment-Date: Tue, 29 Jul 2025 14:58:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Justin Cohen (Gerrit)

unread,
Jul 29, 2025, 3:19:20 PMJul 29
to Mark Mentovai, Crashpad LUCI CQ, Christine Hollingsworth, crashp...@chromium.org
Attention needed from Mark Mentovai

Justin Cohen voted and added 1 comment

Votes added by Justin Cohen

Code-Review+1

1 comment

Patchset-level comments
Mark Mentovai . resolved

Justin for review. (I checked but don’t see similar code in use on iOS.)

Christine for exposure.

Justin Cohen

iOS uses [[NSProcessInfo processInfo] operatingSystemVersion] in util/ios/ios_system_data_collector.mm to get the same information.

LGTM

Open in Gerrit

Related details

Attention is currently required from:
  • Mark Mentovai
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: crashpad/crashpad
Gerrit-Branch: main
Gerrit-Change-Id: Idb26bb59c124ab2191ef961f01e9691856f2c812
Gerrit-Change-Number: 6798736
Gerrit-PatchSet: 1
Gerrit-Owner: Mark Mentovai <ma...@chromium.org>
Gerrit-Reviewer: Justin Cohen <justi...@chromium.org>
Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
Gerrit-CC: Christine Hollingsworth <chris...@chromium.org>
Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
Gerrit-Comment-Date: Tue, 29 Jul 2025 19:19:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Mark Mentovai <ma...@chromium.org>
satisfied_requirement
open
diffy

Mark Mentovai (Gerrit)

unread,
Jul 30, 2025, 10:37:49 AMJul 30
to Justin Cohen, Crashpad LUCI CQ, Christine Hollingsworth, crashp...@chromium.org

Mark Mentovai voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: crashpad/crashpad
Gerrit-Branch: main
Gerrit-Change-Id: Idb26bb59c124ab2191ef961f01e9691856f2c812
Gerrit-Change-Number: 6798736
Gerrit-PatchSet: 1
Gerrit-Owner: Mark Mentovai <ma...@chromium.org>
Gerrit-Reviewer: Justin Cohen <justi...@chromium.org>
Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
Gerrit-CC: Christine Hollingsworth <chris...@chromium.org>
Gerrit-Comment-Date: Wed, 30 Jul 2025 14:37:46 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Crashpad LUCI CQ (Gerrit)

unread,
Jul 30, 2025, 10:38:00 AMJul 30
to Mark Mentovai, Justin Cohen, Christine Hollingsworth, crashp...@chromium.org

Crashpad LUCI CQ submitted the change

Change information

Commit message:
util: Simplify MacOSVersionNumber

sysctlbyname("kern.osproductversion", …) is available since macOS
10.13.4, which is now well below this code’s minimum runtime OS version.
The old implementation that fell back to calling uname and inferring the
macOS version from utsname::release is no longer necessary.

Tests and documentation are also slightly updated and improved.
Test: crashpad_util_test MacUtil.MacOSVersion*
Change-Id: Idb26bb59c124ab2191ef961f01e9691856f2c812
Reviewed-by: Justin Cohen <justi...@chromium.org>
Commit-Queue: Mark Mentovai <ma...@chromium.org>
Files:
Change size: M
Delta: 3 files changed, 53 insertions(+), 110 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Justin Cohen
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: crashpad/crashpad
Gerrit-Branch: main
Gerrit-Change-Id: Idb26bb59c124ab2191ef961f01e9691856f2c812
Gerrit-Change-Number: 6798736
Gerrit-PatchSet: 2
Gerrit-Owner: Mark Mentovai <ma...@chromium.org>
Gerrit-Reviewer: Crashpad LUCI CQ <crashpa...@luci-project-accounts.iam.gserviceaccount.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages