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

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

Issue 1105953002: Pop up the notification when the download is interrupted or completed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dn-xxxx-close-bug
Patch Set: . Created 5 years, 8 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 759d75ca6760d4cb47c865d160147711c63abbe6..2f7d55201069aa0a02c372b7a680ebe7930272e7 100644
--- a/chrome/browser/download/notification/download_notification_item.cc
+++ b/chrome/browser/download/notification/download_notification_item.cc
@@ -186,7 +186,8 @@ void DownloadNotificationItem::UpdateNotificationData() {
}
break;
case content::DownloadItem::COMPLETE:
- notification_->set_type(message_center::NOTIFICATION_TYPE_SIMPLE);
+ notification_->set_type(message_center::NOTIFICATION_TYPE_PROGRESS);
+ notification_->set_progress(100);
asanka 2015/04/28 22:36:40 Isn't the progress and type already correct at thi
yoshiki 2015/05/12 14:49:33 No. As for progress, before here, the progress, wh
if (is_off_the_record) {
// TODO(yoshiki): Replace the tentative image.
SetNotificationImage(IDR_DOWNLOAD_NOTIFICATION_INCOGNITO);
« 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