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

Unified Diff: ash/display/resolution_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: Address Justin's comments. 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: ash/display/resolution_notification_controller_unittest.cc
diff --git a/ash/display/resolution_notification_controller_unittest.cc b/ash/display/resolution_notification_controller_unittest.cc
index 4d1eedf648ced2841c6ac6c44c5c6d0fcfca8c86..62d2bd34ace260ae770d60bdee7221e1b30d96a4 100644
--- a/ash/display/resolution_notification_controller_unittest.cc
+++ b/ash/display/resolution_notification_controller_unittest.cc
@@ -123,8 +123,8 @@ class ResolutionNotificationControllerTest : public ash::test::AshTestBase {
}
static bool IsNotificationVisible() {
- return message_center::MessageCenter::Get()->HasNotification(
- ResolutionNotificationController::kNotificationId);
+ return message_center::MessageCenter::Get()->FindVisibleNotificationById(
+ ResolutionNotificationController::kNotificationId) != NULL;
James Cook 2014/06/09 22:10:23 No need for comparison to NULL here or anywhere el
juyik 2014/06/09 22:46:41 Done.
}
static void TickTimer() {

Powered by Google App Engine
This is Rietveld 408576698