| Index: content/browser/media/webrtc_internals.cc
|
| diff --git a/content/browser/media/webrtc_internals.cc b/content/browser/media/webrtc_internals.cc
|
| index 03f6cd04899a3d925a8f4cb49d0419b36d17d7c4..deac9270916d1276186cf1b6134526d171e6864b 100644
|
| --- a/content/browser/media/webrtc_internals.cc
|
| +++ b/content/browser/media/webrtc_internals.cc
|
| @@ -5,6 +5,7 @@
|
| #include "content/browser/media/webrtc_internals.h"
|
|
|
| #include "base/strings/string_number_conversions.h"
|
| +#include "content/browser/media/audio_debug_controller.h"
|
| #include "content/browser/media/webrtc_internals_ui_observer.h"
|
| #include "content/browser/web_contents/web_contents_view.h"
|
| #include "content/public/browser/browser_thread.h"
|
| @@ -270,11 +271,7 @@ void WebRTCInternals::DisableAudioDebugRecordings() {
|
| // recordings box.
|
| select_file_dialog_ = NULL;
|
|
|
| - for (RenderProcessHost::iterator i(
|
| - content::RenderProcessHost::AllHostsIterator());
|
| - !i.IsAtEnd(); i.Advance()) {
|
| - i.GetCurrentValue()->DisableAudioDebugRecordings();
|
| - }
|
| + AudioDebugController::GetInstance()->DisableAudioDebugRecording();
|
| #endif
|
| }
|
|
|
| @@ -386,12 +383,8 @@ void WebRTCInternals::EnableAudioDebugRecordingsOnAllRenderProcessHosts() {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
|
|
| audio_debug_recordings_ = true;
|
| - for (RenderProcessHost::iterator i(
|
| - content::RenderProcessHost::AllHostsIterator());
|
| - !i.IsAtEnd(); i.Advance()) {
|
| - i.GetCurrentValue()->EnableAudioDebugRecordings(
|
| - audio_debug_recordings_file_path_);
|
| - }
|
| + AudioDebugController::GetInstance()->EnableAudioDebugRecording(
|
| + audio_debug_recordings_file_path_);
|
| }
|
| #endif
|
|
|
|
|