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

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

Issue 1701313002: Partial implementation of subscription restrictions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/platform_notification_service_browsertest.cc
diff --git a/chrome/browser/notifications/platform_notification_service_browsertest.cc b/chrome/browser/notifications/platform_notification_service_browsertest.cc
index 1f74b3a6b627d68cd92f94f65f9fb1c312275860..f9e97140d50ad5014559a82d7941d4ec0207d135 100644
--- a/chrome/browser/notifications/platform_notification_service_browsertest.cc
+++ b/chrome/browser/notifications/platform_notification_service_browsertest.cc
@@ -19,10 +19,10 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/website_settings/permission_bubble_manager.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
+#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test_utils.h"
#include "net/base/filename_util.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
@@ -44,6 +44,7 @@ class PlatformNotificationServiceBrowserTest : public InProcessBrowserTest {
~PlatformNotificationServiceBrowserTest() override {}
// InProcessBrowserTest overrides.
+ void SetUpCommandLine(base::CommandLine* command_line) override;
void SetUp() override;
void SetUpOnMainThread() override;
void TearDown() override;
@@ -179,6 +180,13 @@ bool PlatformNotificationServiceBrowserTest::RequestAndDenyPermission() {
return "denied" == result;
}
+void PlatformNotificationServiceBrowserTest::SetUpCommandLine(
+ base::CommandLine* command_line) {
+ command_line->AppendSwtich(switches::kEnableExperimentalWebPlatformFeatures);
Peter Beverloo 2016/02/17 16:15:35 AppendSwitch
harkness 2016/02/18 10:45:14 Actually, I meant to revert this file. I'll do tha
+
+ InProcessBrowserTest::SetUpCommandLine(command_line);
+}
+
// -----------------------------------------------------------------------------
// TODO(peter): Move PlatformNotificationService-related tests over from

Powered by Google App Engine
This is Rietveld 408576698