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

Side by Side Diff: content/child/runtime_features.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/runtime_features.h" 5 #include "content/child/runtime_features.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/common/content_switches_internal.h" 8 #include "content/common/content_switches_internal.h"
9 #include "content/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
10 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" 10 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 WebRuntimeFeatures::enableSharedWorker(false); 86 WebRuntimeFeatures::enableSharedWorker(false);
87 87
88 #if defined(OS_ANDROID) 88 #if defined(OS_ANDROID)
89 if (command_line.HasSwitch(switches::kDisableWebRTC)) { 89 if (command_line.HasSwitch(switches::kDisableWebRTC)) {
90 WebRuntimeFeatures::enableMediaStream(false); 90 WebRuntimeFeatures::enableMediaStream(false);
91 WebRuntimeFeatures::enablePeerConnection(false); 91 WebRuntimeFeatures::enablePeerConnection(false);
92 } 92 }
93 93
94 if (!command_line.HasSwitch(switches::kEnableSpeechRecognition)) 94 if (!command_line.HasSwitch(switches::kEnableSpeechRecognition))
95 WebRuntimeFeatures::enableScriptedSpeech(false); 95 WebRuntimeFeatures::enableScriptedSpeech(false);
96 #endif
97 96
98 if (command_line.HasSwitch(switches::kEnableServiceWorker))
99 WebRuntimeFeatures::enableServiceWorker(true);
100
101 #if defined(OS_ANDROID)
102 // WebAudio is enabled by default on ARM and X86, if the MediaCodec 97 // WebAudio is enabled by default on ARM and X86, if the MediaCodec
103 // API is available. 98 // API is available.
104 WebRuntimeFeatures::enableWebAudio( 99 WebRuntimeFeatures::enableWebAudio(
105 !command_line.HasSwitch(switches::kDisableWebAudio) && 100 !command_line.HasSwitch(switches::kDisableWebAudio) &&
106 media::MediaCodecBridge::IsAvailable()); 101 media::MediaCodecBridge::IsAvailable());
107 #else 102 #else
108 if (command_line.HasSwitch(switches::kDisableWebAudio)) 103 if (command_line.HasSwitch(switches::kDisableWebAudio))
109 WebRuntimeFeatures::enableWebAudio(false); 104 WebRuntimeFeatures::enableWebAudio(false);
110 #endif 105 #endif
111 106
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 WebRuntimeFeatures::enableBleedingEdgeFastPaths(true); 156 WebRuntimeFeatures::enableBleedingEdgeFastPaths(true);
162 157
163 if (command_line.HasSwitch(switches::kEnablePreciseMemoryInfo)) 158 if (command_line.HasSwitch(switches::kEnablePreciseMemoryInfo))
164 WebRuntimeFeatures::enablePreciseMemoryInfo(true); 159 WebRuntimeFeatures::enablePreciseMemoryInfo(true);
165 160
166 if (command_line.HasSwitch(switches::kEnableLayerSquashing)) 161 if (command_line.HasSwitch(switches::kEnableLayerSquashing))
167 WebRuntimeFeatures::enableLayerSquashing(true); 162 WebRuntimeFeatures::enableLayerSquashing(true);
168 } 163 }
169 164
170 } // namespace content 165 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/worker_host/worker_process_host.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698