<!--
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 Smart Card 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>

<histograms>

<histogram name="SmartCard.ConnectionClosedReason"
    enum="SmartCardConnectionClosedReason" expires_after="2027-01-31">
  <owner>zgroza@chromium.org</owner>
  <owner>src/third_party/blink/renderer/modules/smart_card/OWNERS</owner>
  <summary>
    Records the reason why a smart card connection was closed. This metric is
    recorded each time a connection to a smart card is terminated.
  </summary>
</histogram>

<histogram name="SmartCard.OneTimePermissionExpiryReason"
    enum="SmartCardOneTimePermissionExpiryReason" expires_after="2027-01-31">
  <owner>zgroza@chromium.org</owner>
  <owner>src/third_party/blink/renderer/modules/smart_card/OWNERS</owner>
  <summary>
    Records the reason why an ephemeral (one-time) permission for a smart card
    reader expired. This metric is recorded each time such a permission is
    revoked or expires.
  </summary>
</histogram>

</histograms>

</histogram-configuration>
