| Index: content/renderer/media/media_stream_audio_processor_options.cc
|
| diff --git a/content/renderer/media/media_stream_audio_processor_options.cc b/content/renderer/media/media_stream_audio_processor_options.cc
|
| index cb4278d516c880241630035ce409cb41c239b80e..057b1c9eba8feb44fe294258c6c230f739704f1b 100644
|
| --- a/content/renderer/media/media_stream_audio_processor_options.cc
|
| +++ b/content/renderer/media/media_stream_audio_processor_options.cc
|
| @@ -114,25 +114,6 @@ MediaAudioConstraints::MediaAudioConstraints(
|
|
|
| MediaAudioConstraints::~MediaAudioConstraints() {}
|
|
|
| -// TODO(xians): Remove this method after the APM in WebRtc is deprecated.
|
| -bool MediaAudioConstraints::NeedsAudioProcessing() {
|
| - if (GetEchoCancellationProperty())
|
| - return true;
|
| -
|
| - for (size_t i = 0; i < arraysize(kDefaultAudioConstraints); ++i) {
|
| - // |kEchoCancellation| and |kGoogEchoCancellation| have been convered by
|
| - // GetEchoCancellationProperty().
|
| - if (kDefaultAudioConstraints[i].key != kEchoCancellation &&
|
| - kDefaultAudioConstraints[i].key != kGoogEchoCancellation &&
|
| - IsAudioProcessingConstraint(kDefaultAudioConstraints[i].key) &&
|
| - GetProperty(kDefaultAudioConstraints[i].key)) {
|
| - return true;
|
| - }
|
| - }
|
| -
|
| - return false;
|
| -}
|
| -
|
| bool MediaAudioConstraints::GetProperty(const std::string& key) {
|
| // Return the value if the constraint is specified in |constraints|,
|
| // otherwise return the default value.
|
|
|