Commit 1222325f authored by Jesse Doherty's avatar Jesse Doherty Committed by Commit Bot

Add a user action to capture opening a download.

Change-Id: I7afb93cd9c03195ff9de7f383e65e5ea69ff1c86
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2472958Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Reviewed-by: default avatarMin Qin <qinmin@chromium.org>
Commit-Queue: Jesse Doherty <jwd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818510}
parent d17b3ed3
......@@ -5,6 +5,7 @@
#include "chrome/browser/download/download_stats.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/user_metrics.h"
void RecordDownloadCount(ChromeDownloadCountTypes type) {
UMA_HISTOGRAM_ENUMERATION(
......@@ -29,6 +30,7 @@ void RecordOpenedDangerousConfirmDialog(
}
void RecordDownloadOpenMethod(ChromeDownloadOpenMethod open_method) {
base::RecordAction(base::UserMetricsAction("Download.Open"));
UMA_HISTOGRAM_ENUMERATION("Download.OpenMethod",
open_method,
DOWNLOAD_OPEN_METHOD_LAST_ENTRY);
......
......@@ -6103,6 +6103,18 @@ should be able to be added at any place in this file.
</description>
</action>
<action name="Download.Open">
<owner>dtrainor@chromium.org</owner>
<owner>chrome-analysis-team@google.com</owner>
<description>
User opened a download. This action is logged every time the
Download.OpenMethod histogram is logged.
This histogram is of special interest to the chrome-analysis-team@. Do not
change its semantics or retire it without talking to them first.
</description>
</action>
<action name="DownloadNotification.Button_AlwaysOpenType">
<owner>yoshiki@chromium.org</owner>
<description>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment