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

Unified Diff: chrome/browser/download/notification/download_notification_item.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_item.cc
diff --git a/chrome/browser/download/notification/download_notification_item.cc b/chrome/browser/download/notification/download_notification_item.cc
index e3bd6beec4d83090b0b2e3f74b5e731d91821372..5de0288cea853b767d752012f8b7bfb650ef9b91 100644
--- a/chrome/browser/download/notification/download_notification_item.cc
+++ b/chrome/browser/download/notification/download_notification_item.cc
@@ -20,6 +20,10 @@
#include "ui/message_center/notification.h"
#include "ui/message_center/notification_delegate.h"
+#if defined(USE_ASH)
+#include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
+#endif
+
using message_center::Notification;
namespace {
@@ -65,6 +69,7 @@ void DownloadNotificationItem::NotificationWatcher::OnNotificationRemoved(
}
DownloadNotificationItem::DownloadNotificationItem(content::DownloadItem* item,
+ Profile* profile,
Delegate* delegate)
: openable_(false),
downloading_(false),
@@ -97,6 +102,10 @@ DownloadNotificationItem::DownloadNotificationItem(content::DownloadItem* item,
kDownloadNotificationNotifierId),
data, watcher_.get()));
+#if defined(USE_ASH)
+ notification_->set_profile_id(multi_user_util::GetUserIDFromProfile(profile));
+#endif
+
notification_->set_progress(0);
notification_->set_never_timeout(false);

Powered by Google App Engine
This is Rietveld 408576698