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); |
} |