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

<histogram-configuration>

<histograms>

<histogram name="Toast.FailedToShow" enum="ToastId" expires_after="2027-02-07">
  <owner>agale@chromium.org</owner>
  <owner>stluong@chromium.org</owner>
  <owner>chrome-performance-ui-sea@google.com</owner>
  <summary>
    Logs the ToastId of the toast that fails to show to users. This is logged
    each time a feature attempts to trigger the toast and a toast does not
    appear.
  </summary>
</histogram>

<histogram name="Toast.FrequencyPrefChanged" enum="ToastAlertLevel"
    expires_after="2027-08-24">
  <owner>agale@chromium.org</owner>
  <owner>stluong@chromium.org</owner>
  <owner>chrome-performance-ui-sea@google.com</owner>
  <summary>
    Logs the message frequency pref every time the user changes it on the
    settings page. This is used to understand how often users change this
    setting.
  </summary>
</histogram>

<histogram name="Toast.TriggeredToShow" enum="ToastId"
    expires_after="2027-02-07">
  <owner>agale@chromium.org</owner>
  <owner>stluong@chromium.org</owner>
  <owner>chrome-performance-ui-sea@google.com</owner>
  <summary>
    Logs the ToastId of the toast that is triggered to shown to users. This is
    logged each time a feature triggers the toast and is used to learn how often
    users see a particular toast.
  </summary>
</histogram>

<histogram name="Toast.{ToastName}.Dismissed" enum="ToastCloseReason"
    expires_after="2027-02-07">
  <owner>agale@chromium.org</owner>
  <owner>stluong@chromium.org</owner>
  <owner>chrome-performance-ui-sea@google.com</owner>
  <summary>
    Logs the reason why the {ToastName} toast was dismissed. This is used to
    gain insight on if the user ignores or interacts with the toast.
  </summary>
  <token key="ToastName">
    <variant name="AddedToReadingList" summary="add to reading list"/>
    <variant name="DiceUserMigrated" summary="dice user migrated"/>
    <variant name="EnhancedBundledSecuritySettings"
        summary="enhanced protection user migrated"/>
    <variant name="ImageCopied" summary="image copied"/>
    <variant name="LensOverlay" summary="lens overlay"/>
    <variant name="LinkCopied" summary="link copied"/>
    <variant name="LinkToHighlightCopied" summary="link to highlight"/>
    <variant name="MultistepFilterSuggestion" summary="filter suggestion"/>
    <variant name="MultistepFilterSuggestionRecent"
        summary="recent filter suggestion"/>
    <variant name="NonMilestoneUpdate" summary="non-milestone update"/>
    <variant name="SendTabToSelfNoInternetConnection"
        summary="send tab to self no internet connection"/>
    <variant name="SendTabToSelfTabOpened"
        summary="send tab to self tab opened"/>
    <variant name="SendTabToSelfTabsOpenedInBackground"
        summary="send tab to self tab opened in background"/>
    <variant name="Translate" summary="translate"/>
  </token>
</histogram>

</histograms>

</histogram-configuration>
