Commit 409a9ad4 authored by shaktisahu's avatar shaktisahu Committed by Commit bot

[Download home] Record user action when user opens a download

BUG=718960

Review-Url: https://codereview.chromium.org/2880123002
Cr-Commit-Position: refs/heads/master@{#472208}
parent fd56e232
...@@ -10,6 +10,7 @@ import android.text.TextUtils; ...@@ -10,6 +10,7 @@ import android.text.TextUtils;
import org.chromium.base.ContextUtils; import org.chromium.base.ContextUtils;
import org.chromium.base.metrics.RecordHistogram; import org.chromium.base.metrics.RecordHistogram;
import org.chromium.base.metrics.RecordUserAction;
import org.chromium.chrome.R; import org.chromium.chrome.R;
import org.chromium.chrome.browser.download.DownloadInfo; import org.chromium.chrome.browser.download.DownloadInfo;
import org.chromium.chrome.browser.download.DownloadItem; import org.chromium.chrome.browser.download.DownloadItem;
...@@ -189,6 +190,7 @@ public abstract class DownloadHistoryItemWrapper extends TimedItem { ...@@ -189,6 +190,7 @@ public abstract class DownloadHistoryItemWrapper extends TimedItem {
abstract boolean remove(); abstract boolean remove();
protected void recordOpenSuccess() { protected void recordOpenSuccess() {
RecordUserAction.record("Android.DownloadManager.Item.OpenSucceeded");
RecordHistogram.recordEnumeratedHistogram("Android.DownloadManager.Item.OpenSucceeded", RecordHistogram.recordEnumeratedHistogram("Android.DownloadManager.Item.OpenSucceeded",
getFilterType(), DownloadFilter.FILTER_BOUNDARY); getFilterType(), DownloadFilter.FILTER_BOUNDARY);
......
...@@ -1283,6 +1283,11 @@ should be able to be added at any place in this file. ...@@ -1283,6 +1283,11 @@ should be able to be added at any place in this file.
</description> </description>
</action> </action>
<action name="Android.DownloadManager.Item.OpenSucceeded">
<owner>shaktisahu@chromium.org</owner>
<description>User opened a download from download home.</description>
</action>
<action name="Android.DownloadManager.OpenDrawer"> <action name="Android.DownloadManager.OpenDrawer">
<owner>dfalcantara@chromium.org</owner> <owner>dfalcantara@chromium.org</owner>
<owner>twellington@chromium.org</owner> <owner>twellington@chromium.org</owner>
......
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