Index: chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc |
diff --git a/chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc b/chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc |
index fd457afc7e1acf4f5d83b84ed7f66dfd7ae4f16f..1f43ccaba007f5d6cbcea842366791c629adf1c1 100644 |
--- a/chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc |
+++ b/chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc |
@@ -172,13 +172,13 @@ IN_PROC_BROWSER_TEST_F(NetworkPortalDetectorImplBrowserTest, |
ASSERT_EQ(PortalDetectorStrategy::STRATEGY_ID_SESSION, strategy()->Id()); |
// No notification until portal detection is completed. |
- ASSERT_FALSE(message_center()->HasNotification(kNotificationId)); |
+ ASSERT_FALSE(message_center()->FindVisibleNotificationById(kNotificationId)); |
RestartDetection(); |
CompleteURLFetch(net::OK, 200, NULL); |
// Check that wifi is marked as behind the portal and that notification |
// is displayed. |
- ASSERT_TRUE(message_center()->HasNotification(kNotificationId)); |
+ ASSERT_TRUE(message_center()->FindVisibleNotificationById(kNotificationId)); |
ASSERT_EQ(NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_PORTAL, |
NetworkPortalDetector::Get()->GetCaptivePortalState(kWifi).status); |