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

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

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: Adressed comment and pop up the notification after completion 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
Index: chrome/browser/download/notification/download_notification_item.h
diff --git a/chrome/browser/download/notification/download_notification_item.h b/chrome/browser/download/notification/download_notification_item.h
index ab51542f7b6cffdaeb3bbd95b43fa231e1436f82..3c4d4353d6b6cfe000f3f0a45951dba0f7809d71 100644
--- a/chrome/browser/download/notification/download_notification_item.h
+++ b/chrome/browser/download/notification/download_notification_item.h
@@ -84,6 +84,7 @@ class DownloadNotificationItem : public content::DownloadItem::Observer {
void OnDownloadDestroyed(content::DownloadItem* item) override;
void CloseNotificationByUser();
+ void CloseNotificationByNonUser();
void UpdateNotificationData(NotificationUpdateType type);
void SetNotificationImage(int resource_id);
@@ -102,7 +103,8 @@ class DownloadNotificationItem : public content::DownloadItem::Observer {
scoped_ptr<std::vector<DownloadCommands::Command>> GetPossibleActions() const;
bool openable_;
- bool downloading_;
+ content::DownloadItem::DownloadState previous_download_state_ =
+ content::DownloadItem::MAX_DOWNLOAD_STATE; // As uninitialized state
int image_resource_id_;
Profile* profile_;
scoped_refptr<NotificationWatcher> watcher_;

Powered by Google App Engine
This is Rietveld 408576698