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

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

Issue 834233002: Removing --enable-speech-recognition flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 if (command_line.HasSwitch(switches::kDisableMediaSource)) 104 if (command_line.HasSwitch(switches::kDisableMediaSource))
105 WebRuntimeFeatures::enableMediaSource(false); 105 WebRuntimeFeatures::enableMediaSource(false);
106 106
107 if (command_line.HasSwitch(switches::kDisableSharedWorkers)) 107 if (command_line.HasSwitch(switches::kDisableSharedWorkers))
108 WebRuntimeFeatures::enableSharedWorker(false); 108 WebRuntimeFeatures::enableSharedWorker(false);
109 109
110 #if defined(OS_ANDROID) 110 #if defined(OS_ANDROID)
111 if (command_line.HasSwitch(switches::kDisableWebRTC)) 111 if (command_line.HasSwitch(switches::kDisableWebRTC))
112 WebRuntimeFeatures::enablePeerConnection(false); 112 WebRuntimeFeatures::enablePeerConnection(false);
113 113
114 if (!command_line.HasSwitch(switches::kEnableSpeechRecognition))
115 WebRuntimeFeatures::enableScriptedSpeech(false);
116
117 if (command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures)) 114 if (command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures))
118 WebRuntimeFeatures::enableNotifications(true); 115 WebRuntimeFeatures::enableNotifications(true);
119 116
120 // WebAudio is enabled by default on ARM and X86, if the MediaCodec 117 // WebAudio is enabled by default on ARM and X86, if the MediaCodec
121 // API is available. 118 // API is available.
122 WebRuntimeFeatures::enableWebAudio( 119 WebRuntimeFeatures::enableWebAudio(
123 !command_line.HasSwitch(switches::kDisableWebAudio) && 120 !command_line.HasSwitch(switches::kDisableWebAudio) &&
124 media::MediaCodecBridge::IsAvailable()); 121 media::MediaCodecBridge::IsAvailable());
125 #else 122 #else
126 if (command_line.HasSwitch(switches::kDisableWebAudio)) 123 if (command_line.HasSwitch(switches::kDisableWebAudio))
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 183
187 if (command_line.HasSwitch(switches::kDisableSVG1DOM)) { 184 if (command_line.HasSwitch(switches::kDisableSVG1DOM)) {
188 WebRuntimeFeatures::enableSVG1DOM(false); 185 WebRuntimeFeatures::enableSVG1DOM(false);
189 } 186 }
190 187
191 if (command_line.HasSwitch(switches::kReducedReferrerGranularity)) 188 if (command_line.HasSwitch(switches::kReducedReferrerGranularity))
192 WebRuntimeFeatures::enableReducedReferrerGranularity(true); 189 WebRuntimeFeatures::enableReducedReferrerGranularity(true);
193 } 190 }
194 191
195 } // namespace content 192 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698