| Index: chrome/browser/notifications/notification_interactive_uitest_support.cc
|
| diff --git a/chrome/browser/notifications/notification_interactive_uitest_support.cc b/chrome/browser/notifications/notification_interactive_uitest_support.cc
|
| index 73680f9a35c053d7182f219bc01404b4395145c4..21467c6b3d2550fa858fd4977901bd93fdad9beb 100644
|
| --- a/chrome/browser/notifications/notification_interactive_uitest_support.cc
|
| +++ b/chrome/browser/notifications/notification_interactive_uitest_support.cc
|
| @@ -15,6 +15,7 @@
|
| #include "chrome/common/chrome_features.h"
|
| #include "chrome/test/base/ui_test_utils.h"
|
| #include "components/content_settings/core/browser/host_content_settings_map.h"
|
| +#include "content/public/common/content_switches.h"
|
| #include "content/public/test/browser_test_utils.h"
|
| #include "ui/message_center/message_center.h"
|
| #include "ui/message_center/message_center_observer.h"
|
| @@ -116,6 +117,17 @@ bool MessageCenterChangeObserver::Wait() {
|
|
|
| // -----------------------------------------------------------------------------
|
|
|
| +void NotificationsTest::SetUpDefaultCommandLine(
|
| + base::CommandLine* command_line) {
|
| + InProcessBrowserTest::SetUpDefaultCommandLine(command_line);
|
| +// Temporary change while the whole support class is changed to deal
|
| +// with native notifications. crbug.com/714679
|
| +#if defined(OS_MACOSX)
|
| + command_line->AppendSwitchASCII(switches::kDisableFeatures,
|
| + features::kNativeNotifications.name);
|
| +#endif
|
| +}
|
| +
|
| int NotificationsTest::GetNotificationCount() {
|
| return message_center::MessageCenter::Get()->NotificationCount();
|
| }
|
|
|