Chromium Code Reviews| 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 5e7802d4edf8e2d1e8f9adc2eb3a787afec20def..b5cb0554fc880b4eeaa80a2e174947343eedc98c 100644 |
| --- a/chrome/browser/notifications/message_center_notification_manager.cc |
| +++ b/chrome/browser/notifications/message_center_notification_manager.cc |
| @@ -201,7 +201,14 @@ const Notification* MessageCenterNotificationManager::FindById( |
| profile_notifications_.find(profile_notification_id); |
| if (iter == profile_notifications_.end()) |
| return NULL; |
| - return &(iter->second->notification()); |
| + |
| + // Update |notification| with the latest information from the message center. |
| + ProfileNotification* profile_notification = iter->second; |
| + profile_notification->CopyNotificationState( |
| + message_center_->FindVisibleNotificationById( |
| + iter->second->notification().id())); |
|
Jun Mukai
2015/04/08 00:13:19
I believe this is not necessary anymore.
yoshiki
2015/04/08 00:54:05
Right. Removed.
|
| + |
| + return &(profile_notification->notification()); |
| } |
| bool MessageCenterNotificationManager::CancelById( |