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

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

Issue 1130353004: Reshow the notification after validating dangerous download (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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 | « chrome/browser/download/notification/download_notification_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/notification/download_notification_item.cc
diff --git a/chrome/browser/download/notification/download_notification_item.cc b/chrome/browser/download/notification/download_notification_item.cc
index db99ac508c3226f470b5dc160c5024340bf0dd97..1d78cb0f25fd689a8efac46caa0cdc12d0487bac 100644
--- a/chrome/browser/download/notification/download_notification_item.cc
+++ b/chrome/browser/download/notification/download_notification_item.cc
@@ -149,6 +149,10 @@ void DownloadNotificationItem::OnNotificationButtonClick(int button_index) {
}
DownloadCommands(item_).ExecuteCommand(command);
+
+ // Shows the notification again after clicking "Keep" on dangerous download.
+ if (command == DownloadCommands::KEEP)
+ UpdateNotificationData(ADD_NEW);
}
// DownloadItem::Observer methods
« no previous file with comments | « chrome/browser/download/notification/download_notification_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698