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; |
} |