| Index: content/renderer/media/media_stream_audio_processor.cc
|
| diff --git a/content/renderer/media/media_stream_audio_processor.cc b/content/renderer/media/media_stream_audio_processor.cc
|
| index ef693b241cee6b352a6c28efe5ba97d58cacd7a6..cdaa7f127d2e6a1bafc8a225fd8ef39310633071 100644
|
| --- a/content/renderer/media/media_stream_audio_processor.cc
|
| +++ b/content/renderer/media/media_stream_audio_processor.cc
|
| @@ -264,10 +264,8 @@ void MediaStreamAudioProcessor::InitializeAudioProcessingModule(
|
| const blink::WebMediaConstraints& constraints, int effects,
|
| MediaStreamType type) {
|
| DCHECK(!audio_processing_);
|
| - if (!CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableAudioTrackProcessing)) {
|
| + if (!IsAudioTrackProcessingEnabled())
|
| return;
|
| - }
|
|
|
| RTCMediaConstraints native_constraints(constraints);
|
|
|
| @@ -488,4 +486,9 @@ void MediaStreamAudioProcessor::StopAudioProcessing() {
|
| audio_processing_.reset();
|
| }
|
|
|
| +bool MediaStreamAudioProcessor::IsAudioTrackProcessingEnabled() const {
|
| + return CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableAudioTrackProcessing);
|
| +}
|
| +
|
| } // namespace content
|
|
|