Index: ui/message_center/message_center_impl.cc |
diff --git a/ui/message_center/message_center_impl.cc b/ui/message_center/message_center_impl.cc |
index 9d733272edb8a0ba1b89353789ea2ad92bfa0e93..c1d0179dc00c49eb5727b3ac50c4508808bb3c86 100644 |
--- a/ui/message_center/message_center_impl.cc |
+++ b/ui/message_center/message_center_impl.cc |
@@ -313,6 +313,11 @@ void MessageCenterImpl::RemoveNotification(const std::string& id, |
if (!HasNotification(id)) |
return; |
+ NotificationDelegate* delegate = |
+ notification_list_->GetNotificationDelegate(id); |
+ if (delegate) |
+ delegate->Close(by_user); |
+ |
// In many cases |id| is a reference to an existing notification instance |
// but the instance can be destructed in RemoveNotification(). Hence |
// copies the id explicitly here. |