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

Side by Side Diff: content/child/runtime_features.cc

Issue 590113002: Remove MediaStream runtime flag (status=stable) for chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "content/common/content_switches_internal.h" 9 #include "content/common/content_switches_internal.h"
10 #include "content/public/common/content_switches.h" 10 #include "content/public/common/content_switches.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 if (command_line.HasSwitch(switches::kDisableSessionStorage)) 103 if (command_line.HasSwitch(switches::kDisableSessionStorage))
104 WebRuntimeFeatures::enableSessionStorage(false); 104 WebRuntimeFeatures::enableSessionStorage(false);
105 105
106 if (command_line.HasSwitch(switches::kDisableMediaSource)) 106 if (command_line.HasSwitch(switches::kDisableMediaSource))
107 WebRuntimeFeatures::enableMediaSource(false); 107 WebRuntimeFeatures::enableMediaSource(false);
108 108
109 if (command_line.HasSwitch(switches::kDisableSharedWorkers)) 109 if (command_line.HasSwitch(switches::kDisableSharedWorkers))
110 WebRuntimeFeatures::enableSharedWorker(false); 110 WebRuntimeFeatures::enableSharedWorker(false);
111 111
112 #if defined(OS_ANDROID) 112 #if defined(OS_ANDROID)
113 if (command_line.HasSwitch(switches::kDisableWebRTC)) { 113 if (command_line.HasSwitch(switches::kDisableWebRTC))
114 WebRuntimeFeatures::enableMediaStream(false);
115 WebRuntimeFeatures::enablePeerConnection(false); 114 WebRuntimeFeatures::enablePeerConnection(false);
116 }
117 115
118 if (!command_line.HasSwitch(switches::kEnableSpeechRecognition)) 116 if (!command_line.HasSwitch(switches::kEnableSpeechRecognition))
119 WebRuntimeFeatures::enableScriptedSpeech(false); 117 WebRuntimeFeatures::enableScriptedSpeech(false);
120 118
121 // WebAudio is enabled by default on ARM and X86, if the MediaCodec 119 // WebAudio is enabled by default on ARM and X86, if the MediaCodec
122 // API is available. 120 // API is available.
123 WebRuntimeFeatures::enableWebAudio( 121 WebRuntimeFeatures::enableWebAudio(
124 !command_line.HasSwitch(switches::kDisableWebAudio) && 122 !command_line.HasSwitch(switches::kDisableWebAudio) &&
125 media::MediaCodecBridge::IsAvailable()); 123 media::MediaCodecBridge::IsAvailable());
126 #else 124 #else
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 WebRuntimeFeatures::enableLayerSquashing(true); 173 WebRuntimeFeatures::enableLayerSquashing(true);
176 174
177 if (command_line.HasSwitch(switches::kEnableNetworkInformation) || 175 if (command_line.HasSwitch(switches::kEnableNetworkInformation) ||
178 command_line.HasSwitch( 176 command_line.HasSwitch(
179 switches::kEnableExperimentalWebPlatformFeatures)) { 177 switches::kEnableExperimentalWebPlatformFeatures)) {
180 WebRuntimeFeatures::enableNetworkInformation(true); 178 WebRuntimeFeatures::enableNetworkInformation(true);
181 } 179 }
182 } 180 }
183 181
184 } // namespace content 182 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698