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

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

Issue 1403003004: Revert of Update first download notification correctly if there are multiple notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | chrome/browser/download/notification/download_item_notification.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/notification/download_item_notification.h
diff --git a/chrome/browser/download/notification/download_item_notification.h b/chrome/browser/download/notification/download_item_notification.h
index 0506235ae7db9e357a1777fbae37c62b791ae2b1..0e9e13268cc45e9f3834272077df4e4f915c4d39 100644
--- a/chrome/browser/download/notification/download_item_notification.h
+++ b/chrome/browser/download/notification/download_item_notification.h
@@ -105,6 +105,8 @@
// Flag to show the notification on next update. If true, the notification
// goes visible. The initial value is true so it gets shown on initial update.
bool show_next_ = true;
+ // Current vilibility status of the notification.
+ bool visible_ = false;
int image_resource_id_ = 0;
std::pair<gfx::VectorIconId, SkColor> vector_icon_params_;
@@ -118,12 +120,6 @@
// Status of the preview image decode.
ImageDecodeStatus image_decode_status_ = NOT_STARTED;
- // Pointer to the message center instance.
- message_center::MessageCenter* message_center_;
-
- void SetMessageCenterForTest(
- message_center::MessageCenter* message_center);
-
base::WeakPtrFactory<DownloadItemNotification> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(DownloadItemNotification);
« no previous file with comments | « no previous file | chrome/browser/download/notification/download_item_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698