<!--
Copyright 2025 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 describes the enumerations referenced by entries in histograms.xml for
this directory. Some enums may instead be listed in the central enums.xml file
at src/tools/metrics/histograms/enums.xml when multiple files use them.

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

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(UserDataImportBookmarksReadingListError) -->

<enum name="UserDataImportBookmarksReadingListError">
  <int value="0" label="Failed to Read"/>
  <int value="1" label="Input Too Big"/>
  <int value="2" label="Parsing Failed"/>
  <int value="3" label="Timeout"/>
  <int value="4" label="Other"/>
</enum>

<!-- LINT.ThenChange(//components/user_data_importer/utility/importer_metrics_recorder.h:BookmarksImportError) -->

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

<enum name="UserDataImportOutcome">
  <int value="0" label="Not Present"/>
  <int value="1" label="Failure"/>
  <int value="2" label="Success"/>
</enum>

<!-- LINT.ThenChange(//components/user_data_importer/utility/importer_metrics_recorder.h:ImportOutcome) -->

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

<enum name="UserDataImportPasswordsError">
  <int value="0" label="Failed to Read"/>
  <int value="1" label="Input Too Big"/>
  <int value="2" label="Parsing Failed"/>
  <int value="3" label="Timeout"/>
  <int value="4" label="Other"/>
</enum>

<!-- LINT.ThenChange(//components/user_data_importer/utility/importer_metrics_recorder.h:PasswordsImportError) -->

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

<enum name="UserDataImportTotalFailureError">
  <int value="0" label="No File Provided"/>
  <int value="1" label="File Too Big"/>
  <int value="2" label="Unzip Failed"/>
  <int value="3" label="Other"/>
</enum>

<!-- LINT.ThenChange(//components/user_data_importer/utility/safari_data_importer.cc:TotalFailureError) -->

</enums>

</histogram-configuration>
