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( |