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

Unified Diff: ui/message_center/message_center.cc

Issue 11778012: Changes the OnClick behavior in message center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « chrome/browser/ui/views/ash/balloon_collection_impl_ash.cc ('k') | 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.cc
diff --git a/ui/message_center/message_center.cc b/ui/message_center/message_center.cc
index 917d498a8ea21cb520c28906226b9fb5220d3a05..5486b22b8682156d7654fe098f6069bf048e012d 100644
--- a/ui/message_center/message_center.cc
+++ b/ui/message_center/message_center.cc
@@ -146,6 +146,10 @@ void MessageCenter::ShowNotificationSettings(const std::string& id) {
void MessageCenter::OnNotificationClicked(const std::string& id) {
if (delegate_)
delegate_->OnClicked(id);
+ if (HasPopupNotifications()) {
+ notification_list_->MarkSinglePopupAsShown(id);
+ NotifyMessageCenterChanged(false);
+ }
}
void MessageCenter::OnQuietModeChanged(bool quiet_mode) {
« no previous file with comments | « chrome/browser/ui/views/ash/balloon_collection_impl_ash.cc ('k') | ui/message_center/notification_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698