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

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..cf2a96d14ef62e7210cde23d422c18200c71a0b8 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);
+ return MessageCenter::Get()->FindVisibleNotificationById(kNotificationId) !=
dewittj 2014/06/09 19:59:10 prefer to split this into two statements
juyik 2014/06/09 21:28:08 Done.
+ NULL;
}
class NotificationObserver : public message_center::MessageCenterObserver {

Powered by Google App Engine
This is Rietveld 408576698