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

Unified Diff: chrome/browser/notifications/message_center_notification_manager.cc

Issue 324583002: The 1st patch to disambiguate message center notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Justin's comments. Created 6 years, 6 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: 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 aab2b318c6f9b1353d3f0633c04232567f966c62..b032c4eed99564e14156e5f749e25207e00bf081 100644
--- a/chrome/browser/notifications/message_center_notification_manager.cc
+++ b/chrome/browser/notifications/message_center_notification_manager.cc
@@ -138,7 +138,7 @@ bool MessageCenterNotificationManager::Update(const Notification& notification,
// the immediate update allowed in the message center.
std::string old_id =
old_notification->notification().notification_id();
- DCHECK(message_center_->HasNotification(old_id));
+ DCHECK(message_center_->FindVisibleNotificationById(old_id));
// Add/remove notification in the local list but just update the same
// one in MessageCenter.

Powered by Google App Engine
This is Rietveld 408576698