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

Unified Diff: ui/message_center/message_center_impl.cc

Issue 14299007: Sends Updated when message center is closed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 8 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
« no previous file with comments | « no previous file | ui/message_center/notification_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bc3a6d28742925b6faca49745e589bb0575897b1..3405aa7ef497592d73856f61cccd319520c3d89d 100644
--- a/ui/message_center/message_center_impl.cc
+++ b/ui/message_center/message_center_impl.cc
@@ -34,7 +34,13 @@ void MessageCenterImpl::SetDelegate(Delegate* delegate) {
}
void MessageCenterImpl::SetMessageCenterVisible(bool visible) {
- notification_list_->SetMessageCenterVisible(visible);
+ std::set<std::string> updated_ids;
+ notification_list_->SetMessageCenterVisible(visible, &updated_ids);
+ for (std::set<std::string>::const_iterator iter = updated_ids.begin();
+ iter != updated_ids.end(); ++iter) {
+ FOR_EACH_OBSERVER(MessageCenterObserver, observer_list_,
+ OnNotificationUpdated(*iter));
+ }
}
size_t MessageCenterImpl::NotificationCount() const {
« no previous file with comments | « no previous file | ui/message_center/notification_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698