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

Unified Diff: content/renderer/media/media_stream_audio_processor_options.cc

Issue 671793004: Clean up the media stream audio track code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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 537ef908b14a9e65f0773a95e2948354c11815b2..5f99c921d3ff133f9a0223fe674838afb2edcb56 100644
--- a/content/renderer/media/media_stream_audio_processor_options.cc
+++ b/content/renderer/media/media_stream_audio_processor_options.cc
@@ -140,25 +140,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.

Powered by Google App Engine
This is Rietveld 408576698