Skip to content

Commit 0aea308

Browse files
Mark Rowecopybara-github
authored andcommitted
Remove DumpWithoutCrashing from ProcessRequirement::GatherMetrics
We've learnt enough about these unexepcted cases that we no longer need it. Fixed: 372840323 Change-Id: I9325dff72c32aa94c0faf16514b9b14662795938 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6021417 Commit-Queue: Mark Mentovai <[email protected]> Auto-Submit: Mark Rowe <[email protected]> Reviewed-by: Mark Mentovai <[email protected]> Cr-Commit-Position: refs/heads/main@{#1382688} NOKEYCHECK=True GitOrigin-RevId: f178d909c69e2dd1104112ef6f8776f5b3730b3e
1 parent c9d8d85 commit 0aea308

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

mac/process_requirement.cc

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -647,42 +647,6 @@ void ProcessRequirement::GatherMetrics() {
647647
"FallbackValidationCategory",
648648
fallback_validation_category_has_expected_value);
649649
}
650-
651-
bool all_fields_have_expected_values =
652-
team_id_has_expected_value &&
653-
fallback_validation_category_has_expected_value;
654-
if (CSOpsProvider()->SupportsValidationCategory()) {
655-
all_fields_have_expected_values = all_fields_have_expected_values &&
656-
validation_category_has_expected_value;
657-
}
658-
659-
if (!all_fields_have_expected_values) {
660-
// Use `DumpWithoutCrashing` to understand unexpected values, except in
661-
// specific situations where "unexpected" values are expected.
662-
if (fallback_validation_category == ValidationCategory::None &&
663-
(team_id == base::unexpected(ENOENT) ||
664-
team_id == base::unexpected(EINVAL))) {
665-
// A build with Chrome branding that is unsigned or ad-hoc signed,
666-
// such as for local development.
667-
} else if (team_id_has_expected_value &&
668-
fallback_validation_category ==
669-
ValidationCategory::Development) {
670-
// A build with Chrome branding signed with the development identity.
671-
} else if (validation_category == ValidationCategory::Platform) {
672-
// Being reported as a platform binary indicates that
673-
// `amfi_get_out_of_my_way=1` is set in the boot arguments.
674-
} else {
675-
SCOPED_CRASH_KEY_STRING32("ProcessRequirement", "TeamIdentifier",
676-
StringForCrashKey(team_id));
677-
SCOPED_CRASH_KEY_STRING32("ProcessRequirement", "Category",
678-
StringForCrashKey(validation_category));
679-
SCOPED_CRASH_KEY_STRING32(
680-
"ProcessRequirement", "FallbackCategory",
681-
StringForCrashKey(fallback_validation_category));
682-
683-
debug::DumpWithoutCrashing();
684-
}
685-
}
686650
#endif
687651

688652
std::optional<ProcessRequirement> requirement;

0 commit comments

Comments
 (0)