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

Unified Diff: chrome/browser/chromeos/net/network_portal_notification_controller_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/chromeos/net/network_portal_notification_controller_unittest.cc
diff --git a/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc b/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc
index b502658d5b456b5bad28bfa64903a7cb20b0e1d2..3ef1ad760fb18e3902a7e2e245c39d59b19658f2 100644
--- a/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc
+++ b/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc
@@ -20,7 +20,8 @@ const char* kNotificationId =
NetworkPortalNotificationController::kNotificationId;
bool HasNotification() {
- return MessageCenter::Get()->HasNotification(kNotificationId);
+ MessageCenter* message_center = MessageCenter::Get();
+ return message_center->FindVisibleNotificationById(kNotificationId);
}
class NotificationObserver : public message_center::MessageCenterObserver {

Powered by Google App Engine
This is Rietveld 408576698