| Index: chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc
|
| diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc
|
| index 10f4de83bf0405d068a822f6d68108c33f8fea98..53118610ca68f16022546a80a54a7395db6b0f14 100644
|
| --- a/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc
|
| +++ b/chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc
|
| @@ -25,21 +25,21 @@ class ExtensionManifestServiceWorkerTest : public ExtensionManifestTest {
|
|
|
| void AddServiceWorkerCommandLineSwitch() {
|
| CHECK(!CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableServiceWorker));
|
| + switches::kEnableExperimentalWebPlatformFeatures));
|
| CommandLine::ForCurrentProcess()->AppendSwitch(
|
| - switches::kEnableServiceWorker);
|
| + switches::kEnableExperimentalWebPlatformFeatures);
|
| }
|
|
|
| // "app.service_worker" is restricted to trunk in _manifest_features.json.
|
| extensions::ScopedCurrentChannel trunk_channel_;
|
| };
|
|
|
| -// Checks that a service_worker key is ignored without enable-service-worker
|
| -// switch. When service workers are enabled by default please remove this
|
| -// test.
|
| +// Checks that a service_worker key is ignored without
|
| +// enable-experimental-web-platform-features switch. When service workers are
|
| +// enabled by default please remove this test.
|
| TEST_F(ExtensionManifestServiceWorkerTest, ServiceWorkerCommandLineRequired) {
|
| CHECK(!CommandLine::ForCurrentProcess()->HasSwitch(
|
| - ::switches::kEnableServiceWorker));
|
| + ::switches::kEnableExperimentalWebPlatformFeatures));
|
| LoadFromStringAndExpectError(
|
| "{"
|
| " 'name': '',"
|
|
|