diff options
author | alecflett@chromium.org <alecflett@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-15 18:08:26 +0000 |
---|---|---|
committer | alecflett@chromium.org <alecflett@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-15 18:08:26 +0000 |
commit | a0ef52110d388f80a54594f2811051c725a27359 (patch) | |
tree | 62a43d7ee6a1bca0e3ca0d9a0ff35339c257f493 /content/child | |
parent | c94d427b4a54029dd80abb71158a4a3591eb39bb (diff) | |
download | chromium_src-a0ef52110d388f80a54594f2811051c725a27359.zip chromium_src-a0ef52110d388f80a54594f2811051c725a27359.tar.gz chromium_src-a0ef52110d388f80a54594f2811051c725a27359.tar.bz2 |
Add commandline flag for service workers.
this allows the browser to detect at runtime if service workers should be enabled or not.
BUG=285976
Review URL: https://codereview.chromium.org/27238005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/child')
-rw-r--r-- | content/child/runtime_features.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc index 34225de..b784459 100644 --- a/content/child/runtime_features.cc +++ b/content/child/runtime_features.cc @@ -91,6 +91,9 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( WebRuntimeFeatures::enableScriptedSpeech(false); #endif + if (command_line.HasSwitch(switches::kEnableServiceWorker)) + WebRuntimeFeatures::enableServiceWorker(true); + if (command_line.HasSwitch(switches::kDisableWebAudio)) WebRuntimeFeatures::enableWebAudio(false); |