<!--
Copyright 2026 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<!--
This file is used to generate a comprehensive list of Critical Actions
histograms along with a detailed description for each histogram.

For best practices on writing histogram descriptions, see
https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md

Please follow the instructions in the OWNERS file in this directory to find a
reviewer. If no OWNERS file exists, please consider signing up at
go/reviewing-metrics (Googlers only), as all subdirectories are expected to
have an OWNERS file. As a last resort you can send the CL to
chromium-metrics-reviews@google.com.
-->

<histogram-configuration>

<enums>

<!-- LINT.IfChange(CriticalActionType) -->

<enum name="CriticalActionType">
  <int value="0" label="Unknown"/>
  <int value="1" label="FormFill"/>
  <int value="2" label="Download"/>
  <int value="3" label="SettingChange"/>
  <int value="4" label="CredentialAccess"/>
  <int value="5" label="GooglePasswordManager"/>
  <int value="6" label="FederatedLogin"/>
  <int value="7" label="CredentialsOtp"/>
</enum>

<!-- LINT.ThenChange(//components/critical_actions/core/browser/critical_action_types.h:CriticalActionType, //ui/webui/resources/cr_components/history/history.mojom:CriticalActionType) -->

<!-- LINT.IfChange(CriticalActionVisitIdResolutionOutcome) -->

<enum name="CriticalActionVisitIdResolutionOutcome">
  <int value="0" label="Success: Event recorded with Visit ID"/>
  <int value="1" label="Evicted: Navigation cache capacity exceeded"/>
  <int value="2" label="Evicted: Navigated away before resolution"/>
  <int value="3" label="Dropped: Early drop due to missing navigation ID"/>
  <int value="4" label="Evicted: Service shutting down"/>
</enum>

<!-- LINT.ThenChange(//components/critical_actions/core/browser/critical_action_service.h:CriticalActionVisitIdResolutionOutcome) -->

</enums>

</histogram-configuration>
