summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager/task_manager_notification_browsertest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/task_manager/task_manager_notification_browsertest.cc')
-rw-r--r--chrome/browser/task_manager/task_manager_notification_browsertest.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/task_manager/task_manager_notification_browsertest.cc b/chrome/browser/task_manager/task_manager_notification_browsertest.cc
index eb51693..73f9657 100644
--- a/chrome/browser/task_manager/task_manager_notification_browsertest.cc
+++ b/chrome/browser/task_manager/task_manager_notification_browsertest.cc
@@ -19,7 +19,10 @@
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/common/content_switches.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/message_center/message_center_util.h"
+
+#if !defined(ENABLE_MESSAGE_CENTER)
+// These tests do not apply with Message Center platforms
+// where notifications do not instantiate a new renderer.
class TaskManagerNotificationBrowserTest : public ExtensionBrowserTest {
public:
@@ -45,11 +48,6 @@ class TaskManagerNotificationBrowserTest : public ExtensionBrowserTest {
#endif
IN_PROC_BROWSER_TEST_F(TaskManagerNotificationBrowserTest,
MAYBE_NoticeNotificationChanges) {
- // These tests do not apply with Message Center platforms
- // where notifications do not instantiate a new renderer.
- if (message_center::IsRichNotificationEnabled())
- return;
-
EXPECT_EQ(0, model()->ResourceCount());
// Show the task manager.
@@ -81,3 +79,5 @@ IN_PROC_BROWSER_TEST_F(TaskManagerNotificationBrowserTest,
notifications->CancelById(n2.notification_id());
TaskManagerBrowserTestUtil::WaitForWebResourceChange(1);
}
+
+#endif // !ENABLE_MESSAGE_CENTER