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

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

Issue 2833993002: Enable MacOSX native notifications by default (Closed)
Patch Set: review Created 3 years, 8 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/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();
}

Powered by Google App Engine
This is Rietveld 408576698