Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3241)

Unified Diff: chrome/browser/download/notification/download_item_notification.cc

Issue 1333323002: Add UMA metrics for the frequency of closing dangerous download notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keeping changes of metrics for recording action only. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/metrics/actions/actions.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/notification/download_item_notification.cc
diff --git a/chrome/browser/download/notification/download_item_notification.cc b/chrome/browser/download/notification/download_item_notification.cc
index 540bcafef4c5b0e5a202eadc7958e1e6d1767c12..05caef817c6f436eacfb3fdda5ec6d23e79f38b1 100644
--- a/chrome/browser/download/notification/download_item_notification.cc
+++ b/chrome/browser/download/notification/download_item_notification.cc
@@ -211,7 +211,8 @@ void DownloadItemNotification::OnNotificationClose() {
visible_ = false;
if (item_ && item_->IsDangerous() && !item_->IsDone()) {
- // TODO(yoshiki): Add metrics.
+ content::RecordAction(
+ UserMetricsAction("DownloadNotification.Close_Dangerous"));
item_->Cancel(true /* by_user */);
return;
}
« no previous file with comments | « no previous file | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698