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

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: Addressed the comments 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
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..8407e01b525931a76562dc7efe3186129631870d 100644
--- a/chrome/browser/download/notification/download_notification_manager.cc
+++ b/chrome/browser/download/notification/download_notification_manager.cc
@@ -16,10 +16,8 @@
#include "ui/message_center/notification.h"
#include "ui/message_center/notification_delegate.h"
-using message_center::Notification;
-
DownloadNotificationManager::DownloadNotificationManager(Profile* profile)
- : items_deleter_(&items_) {
+ : profile_(profile), items_deleter_(&items_) {
}
DownloadNotificationManager::~DownloadNotificationManager() {
@@ -43,6 +41,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