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

Unified Diff: chrome/common/extensions/manifest_tests/extension_manifests_service_worker_unittest.cc

Issue 339973003: Remove --enable-service-worker flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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': '',"
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698