| Index: chrome/browser/notifications/message_center_notifications_browsertest.cc
|
| diff --git a/chrome/browser/notifications/message_center_notifications_browsertest.cc b/chrome/browser/notifications/message_center_notifications_browsertest.cc
|
| index 3626eb7fa7a1d498d5591ce7ff59df1d4455d101..8e4088658cbce73d900a474e24f66791eb6f6254 100644
|
| --- a/chrome/browser/notifications/message_center_notifications_browsertest.cc
|
| +++ b/chrome/browser/notifications/message_center_notifications_browsertest.cc
|
| @@ -14,10 +14,13 @@
|
| #include "chrome/browser/notifications/notification_ui_manager.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser.h"
|
| -#include "chrome/common/chrome_switches.h"
|
| #include "chrome/test/base/in_process_browser_test.h"
|
| #include "ui/message_center/message_center.h"
|
|
|
| +#if defined(ENABLE_MESSAGE_CENTER)
|
| +#include "ui/message_center/message_center_switches.h"
|
| +#endif
|
| +
|
| class MessageCenterNotificationsTest : public InProcessBrowserTest {
|
| public:
|
| MessageCenterNotificationsTest() {}
|
| @@ -25,7 +28,10 @@ class MessageCenterNotificationsTest : public InProcessBrowserTest {
|
| virtual void SetUpCommandLine(CommandLine* command_line) {
|
| // This switch enables the new piping of Notifications through Message
|
| // Center.
|
| - command_line->AppendSwitch(switches::kEnableRichNotifications);
|
| +#if defined(ENABLE_MESSAGE_CENTER)
|
| + command_line->AppendSwitch(
|
| + message_center::switches::kEnableRichNotifications);
|
| +#endif
|
| }
|
|
|
| MessageCenterNotificationManager* manager() {
|
|
|