Index: content/renderer/media/webrtc/peer_connection_dependency_factory.cc |
diff --git a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc |
index c4d69dd64a109db2ab9ce5e5107452a876f9acd9..a9652e797cc2303c4b9aa4702d17d951960f9dcd 100644 |
--- a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc |
+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc |
@@ -447,9 +447,11 @@ void PeerConnectionDependencyFactory::CreateLocalAudioTrack( |
void PeerConnectionDependencyFactory::StartLocalAudioTrack( |
WebRtcLocalAudioTrack* audio_track) { |
// Add the WebRtcAudioDevice as the sink to the local audio track. |
- // TODO(xians): Implement a PeerConnection sink adapter and remove this |
- // AddSink() call. |
- audio_track->AddSink(GetWebRtcAudioDevice()); |
+ // TODO(xians): Remove the following line of code after the APM in WebRTC is |
+ // completely deprecated. See http://crbug/365672. |
+ if (!MediaStreamAudioProcessor::IsAudioTrackProcessingEnabled()) |
+ audio_track->AddSink(GetWebRtcAudioDevice()); |
+ |
// Start the audio track. This will hook the |audio_track| to the capturer |
// as the sink of the audio, and only start the source of the capturer if |
// it is the first audio track connecting to the capturer. |