1 // Copyright 2021 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_APP_NOTIFICATION_METRICS_H_
6 #define CHROME_APP_NOTIFICATION_METRICS_H_
8 // Describes from which app the notification action came for. This enum is used
9 // in UMA. Do not delete or re-order entries. New entries should only be added
11 enum class NotificationActionSource {
12 // Action for the browser app, usually from a banner style notification.
14 // Action for the helper app, usually from an alert style notification.
16 kMaxValue = kHelperApp,
19 // Logs to UMA that we got launched via the OS to handle a notification action.
20 void LogLaunchedViaNotificationAction(NotificationActionSource source);
22 #endif // CHROME_APP_NOTIFICATION_METRICS_H_