Chromium Code Reviews| Index: content/browser/renderer_host/render_process_host_impl.cc |
| diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
| index ede70ada11303dfea53c00bb16ed53491a313293..8b820d36d352c984ae8f6e2624c2ae53dcc006e4 100644 |
| --- a/content/browser/renderer_host/render_process_host_impl.cc |
| +++ b/content/browser/renderer_host/render_process_host_impl.cc |
| @@ -2343,6 +2343,18 @@ bool RenderProcessHostImpl::StopWebRTCEventLog() { |
| return webrtc_eventlog_host_.StopWebRTCEventLog(); |
| } |
| +void RenderProcessHostImpl::SetEchoCanceller3(bool enable) { |
| + DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| + |
| + // Piggybacking on AEC dumps. |
| + // TODO(hlundin) Change name for aec_dump_consumers_; http://crbug.com/709919. |
|
Henrik Grunell
2017/04/10 12:33:47
Super-nit: add : after )
hlundin-chromium
2017/04/10 13:03:17
Done, but it breaks my line-length optimization...
Henrik Grunell
2017/04/10 17:08:40
Sorry... :o
|
| + for (std::vector<int>::iterator it = aec_dump_consumers_.begin(); |
| + it != aec_dump_consumers_.end(); ++it) { |
| + Send(new AudioProcessingMsg_EnableAec3(*it, enable)); |
| + } |
| + override_aec3_ = base::Optional<bool>(enable); |
| +} |
| + |
| void RenderProcessHostImpl::SetWebRtcLogMessageCallback( |
| base::Callback<void(const std::string&)> callback) { |
| #if BUILDFLAG(ENABLE_WEBRTC) |
| @@ -2996,6 +3008,9 @@ void RenderProcessHostImpl::RegisterAecDumpConsumerOnUIThread(int id) { |
| WebRTCInternals::GetInstance()->GetAudioDebugRecordingsFilePath()); |
| EnableAecDumpForId(file_with_extensions, id); |
| } |
| + if (override_aec3_) { |
| + Send(new AudioProcessingMsg_EnableAec3(id, *override_aec3_)); |
| + } |
| } |
| void RenderProcessHostImpl::UnregisterAecDumpConsumerOnUIThread(int id) { |