summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/ui/webui/settings/chromeos/app_management/app_management_uma.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/ui/webui/settings/chromeos/app_management/app_management_uma.h')
-rw-r--r--chromium/chrome/browser/ui/webui/settings/chromeos/app_management/app_management_uma.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/chromium/chrome/browser/ui/webui/settings/chromeos/app_management/app_management_uma.h b/chromium/chrome/browser/ui/webui/settings/chromeos/app_management/app_management_uma.h
new file mode 100644
index 00000000000..31d7515612e
--- /dev/null
+++ b/chromium/chrome/browser/ui/webui/settings/chromeos/app_management/app_management_uma.h
@@ -0,0 +1,31 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_APP_MANAGEMENT_APP_MANAGEMENT_UMA_H_
+#define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_APP_MANAGEMENT_APP_MANAGEMENT_UMA_H_
+
+// These are used in histograms, do not remove/renumber entries. If you're
+// adding to this enum with the intention that it will be logged, update the
+// AppManagementEntryPoint enum listing in
+// tools/metrics/histograms/enums.xml.
+enum class AppManagementEntryPoint {
+ kAppListContextMenuAppInfoArc = 0,
+ kAppListContextMenuAppInfoChromeApp = 1,
+ kAppListContextMenuAppInfoWebApp = 2,
+ kLauncherContextMenuAppInfoArc = 3,
+ kLauncherContextMenuAppInfoChromeApp = 4,
+ kLauncherContextMenuAppInfoWebApp = 5,
+ kAppManagementMainViewArc = 6,
+ kAppManagementMainViewChromeApp = 7,
+ kAppManagementMainViewWebApp = 8,
+ kOsSettingsMainPage = 9,
+ kMaxValue = kOsSettingsMainPage,
+};
+
+// This histogram is also declared and used at chrome/browser/resources/
+// settings/chrome_os/os_apps_page/app_management_page/constants.js.
+constexpr char kAppManagementEntryPointsHistogramName[] =
+ "AppManagement.EntryPoints";
+
+#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_APP_MANAGEMENT_APP_MANAGEMENT_UMA_H_