| Index: ui/message_center/notification_list.cc
|
| diff --git a/ui/message_center/notification_list.cc b/ui/message_center/notification_list.cc
|
| index 611d4e89a432fda8d5ab333b57d7454cea3ced6d..eac4345657ed1727eed327b2df899a0dddc33a5f 100644
|
| --- a/ui/message_center/notification_list.cc
|
| +++ b/ui/message_center/notification_list.cc
|
| @@ -160,10 +160,6 @@ bool NotificationList::SetNotificationButtonIcon(
|
| return true;
|
| }
|
|
|
| -bool NotificationList::HasNotification(const std::string& id) {
|
| - return GetNotification(id) != notifications_.end();
|
| -}
|
| -
|
| bool NotificationList::HasNotificationOfType(const std::string& id,
|
| const NotificationType type) {
|
| Notifications::iterator iter = GetNotification(id);
|
| @@ -271,6 +267,13 @@ void NotificationList::SetQuietMode(bool quiet_mode) {
|
| }
|
| }
|
|
|
| +Notification* NotificationList::GetNotificationById(const std::string& id) {
|
| + Notifications::iterator iter = GetNotification(id);
|
| + if (iter != notifications_.end())
|
| + return *iter;
|
| + return NULL;
|
| +}
|
| +
|
| NotificationList::Notifications NotificationList::GetVisibleNotifications(
|
| const NotificationBlockers& blockers) const {
|
| Notifications result;
|
|
|