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

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, 12 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
Index: ui/message_center/message_center.cc
diff --git a/ui/message_center/message_center.cc b/ui/message_center/message_center.cc
index 0462a03563e61ac78938614b40fc1fcaac5d483e..5540fa867316adaa43cbce8cbd8a4e10a58fc038 100644
--- a/ui/message_center/message_center.cc
+++ b/ui/message_center/message_center.cc
@@ -140,6 +140,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) {

Powered by Google App Engine
This is Rietveld 408576698