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

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

Issue 1126343006: Open the learn more page when user clicks a notification of malicious download (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | 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 2e9438b5600690ed144436fab192f9cad4c56239..921fc8a7dcc76c732d788a75b8ae3f7290d753eb 100644
--- a/chrome/browser/download/notification/download_notification_item.cc
+++ b/chrome/browser/download/notification/download_notification_item.cc
@@ -119,6 +119,11 @@ void DownloadNotificationItem::OnNotificationClick() {
} else {
item_->SetOpenWhenComplete(!item_->GetOpenWhenComplete()); // Toggle
asanka 2015/05/14 22:07:42 Does this also cause the notification to close aut
yoshiki 2015/05/18 16:51:59 No, the notification doesn't close. When the downl
}
+#if defined(FULL_SAFE_BROWSING)
+ } else if (item_->IsDangerous()) {
asanka 2015/05/14 22:07:42 At this point, I think it would be readable to bre
yoshiki 2015/05/18 16:51:59 Thanks, I refined the code of OnNotificationClick
+ DownloadCommands(item_).ExecuteCommand(
+ DownloadCommands::LEARN_MORE_SCANNING);
+#endif
} else if (item_->GetState() == content::DownloadItem::INTERRUPTED ||
item_->GetState() == content::DownloadItem::CANCELLED) {
GetBrowser()->OpenURL(content::OpenURLParams(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698