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

Unified Diff: chrome/browser/notifications/message_center_notification_manager.cc

Issue 22724002: Invokes NotificationDelegate::Close in message center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/notifications/message_center_notification_manager.cc
diff --git a/chrome/browser/notifications/message_center_notification_manager.cc b/chrome/browser/notifications/message_center_notification_manager.cc
index 566173424653be5d5af52272e26a278e4ab1adeb..2054a7ff7c96a2c77e964c0dcf6b174652c926fd 100644
--- a/chrome/browser/notifications/message_center_notification_manager.cc
+++ b/chrome/browser/notifications/message_center_notification_manager.cc
@@ -307,7 +307,7 @@ void MessageCenterNotificationManager::OnNotificationRemoved(
NotificationMap::const_iterator iter =
profile_notifications_.find(notification_id);
if (iter != profile_notifications_.end())
- RemoveProfileNotification(iter->second, by_user);
+ RemoveProfileNotification(iter->second);
#if defined(OS_WIN)
CheckFirstRunTimer();
@@ -549,9 +549,7 @@ void MessageCenterNotificationManager::AddProfileNotification(
}
void MessageCenterNotificationManager::RemoveProfileNotification(
- ProfileNotification* profile_notification,
- bool by_user) {
- profile_notification->notification().Close(by_user);
+ ProfileNotification* profile_notification) {
std::string id = profile_notification->notification().notification_id();
profile_notifications_.erase(id);
delete profile_notification;
« no previous file with comments | « chrome/browser/notifications/message_center_notification_manager.h ('k') | ui/message_center/message_center_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698