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

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

Issue 324583002: The 1st patch to disambiguate message center notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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/extension_welcome_notification_unittest.cc
diff --git a/chrome/browser/notifications/extension_welcome_notification_unittest.cc b/chrome/browser/notifications/extension_welcome_notification_unittest.cc
index 487eaf9620442ce6318c428d1590778f06025c5d..6e037ad5b94118c6cf6d09e727513718fdc75232 100644
--- a/chrome/browser/notifications/extension_welcome_notification_unittest.cc
+++ b/chrome/browser/notifications/extension_welcome_notification_unittest.cc
@@ -40,8 +40,11 @@ class MockMessageCenter : public message_center::FakeMessageCenter {
}
// message_center::FakeMessageCenter Overrides
- virtual bool HasNotification(const std::string& id) OVERRIDE {
- return last_notification.get() && (last_notification->id() == id);
+ virtual message_center::Notification* FindVisibleNotificationById(
+ const std::string& id) OVERRIDE {
+ if (last_notification.get() && last_notification->id() == id)
+ return last_notification.get();
+ return NULL;
}
virtual void AddNotification(

Powered by Google App Engine
This is Rietveld 408576698