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

Unified Diff: chrome/browser/notifications/message_center_notifications_unittest_win.cc

Issue 23636010: Notifications: Add cross-platform UMA: ShowMessageCenter, ShowSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added the hash to chromeactions.txt Created 7 years, 3 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/notifications/message_center_notifications_unittest_win.cc
diff --git a/chrome/browser/notifications/message_center_notifications_unittest_win.cc b/chrome/browser/notifications/message_center_notifications_unittest_win.cc
index 01c8534012b2391e7e620e0e018832a3b4eba069..bd945609fde1e80e25cb3e889c4dffaf4e3729e4 100644
--- a/chrome/browser/notifications/message_center_notifications_unittest_win.cc
+++ b/chrome/browser/notifications/message_center_notifications_unittest_win.cc
@@ -21,6 +21,7 @@
#include "ui/message_center/message_center_impl.h"
#include "ui/message_center/message_center_tray.h"
#include "ui/message_center/message_center_tray_delegate.h"
+#include "ui/message_center/message_center_types.h"
#include "ui/message_center/notifier_settings.h"
namespace message_center {
@@ -158,7 +159,7 @@ TEST_F(MessageCenterNotificationManagerTest,
FirstRunNotShownWithMessageCenter) {
TestingProfile profile;
notification_manager()->Add(GetANotification("test"), &profile);
- message_center()->SetMessageCenterVisible(true);
+ message_center()->SetVisibility(message_center::VISIBILITY_MESSAGE_CENTER);
run_loop()->RunUntilIdle();
EXPECT_FALSE(notification_manager()->FirstRunTimerIsActive());
EXPECT_FALSE(DidFirstRunPref());

Powered by Google App Engine
This is Rietveld 408576698