Commit 7c1ea69b authored by peter's avatar peter Committed by Commit bot

Propagate push command line flag to the renderer process.

The renderer is using this to conditionally enable payload API surface
for incoming push messages, and thus needs to know about it.

This patch also re-enables the tests.

BUG=452666

Review URL: https://codereview.chromium.org/884093003

Cr-Commit-Position: refs/heads/master@{#313500}
parent 477e91f0
......@@ -362,8 +362,7 @@ IN_PROC_BROWSER_TEST_F(PushMessagingBrowserTest, RegisterPersisted) {
EXPECT_EQ(app_id_sw1.ToString(), gcm_service()->last_registered_app_id());
}
// Disabled due to failures: crbug.com/452666
IN_PROC_BROWSER_TEST_F(PushMessagingBrowserTest, DISABLED_PushEventSuccess) {
IN_PROC_BROWSER_TEST_F(PushMessagingBrowserTest, PushEventSuccess) {
std::string script_result;
TryToRegisterSuccessfully("1-0" /* expected_push_registration_id */);
......@@ -466,9 +465,8 @@ IN_PROC_BROWSER_TEST_F(PushMessagingBrowserTest, PushEventNoPermission) {
}
#if defined(ENABLE_NOTIFICATIONS)
// Disabled due to failures: crbug.com/452666
IN_PROC_BROWSER_TEST_F(PushMessagingBrowserTest,
DISABLED_PushEventEnforcesUserVisibleNotification) {
PushEventEnforcesUserVisibleNotification) {
std::string script_result;
TryToRegisterSuccessfully("1-0" /* expected_push_registration_id */);
......
......@@ -1248,6 +1248,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kEnableOverlayScrollbar,
switches::kEnablePinch,
switches::kEnablePreciseMemoryInfo,
switches::kEnablePushMessagePayload,
switches::kEnableRendererMojoChannel,
switches::kEnableSeccompFilterSandbox,
switches::kEnableSkiaBenchmarking,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment