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

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

Issue 1005393003: [Download Notification] Use NotificationUIManager instead of MessageCenter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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_manager.cc
diff --git a/chrome/browser/download/notification/download_notification_manager.cc b/chrome/browser/download/notification/download_notification_manager.cc
index 07275303970136a7342442437e0f5fc2b9b89a39..d62c9a1891aca6e5f2eb9bf1bfd19924564a605a 100644
--- a/chrome/browser/download/notification/download_notification_manager.cc
+++ b/chrome/browser/download/notification/download_notification_manager.cc
@@ -19,7 +19,8 @@
using message_center::Notification;
DownloadNotificationManager::DownloadNotificationManager(Profile* profile)
- : items_deleter_(&items_) {
+ : profile_(profile),
+ items_deleter_(&items_) {
}
DownloadNotificationManager::~DownloadNotificationManager() {
@@ -43,6 +44,7 @@ void DownloadNotificationManager::OnDownloadRemoved(
void DownloadNotificationManager::OnNewDownloadReady(
content::DownloadItem* download) {
- DownloadNotificationItem* item = new DownloadNotificationItem(download, this);
+ DownloadNotificationItem* item =
+ new DownloadNotificationItem(download, profile_, this);
items_.insert(item);
}

Powered by Google App Engine
This is Rietveld 408576698