Index: content/browser/media/webrtc_internals.cc |
diff --git a/content/browser/media/webrtc_internals.cc b/content/browser/media/webrtc_internals.cc |
index 40aa91baaec23615a1cccddf46369c8e1dc25a35..3519d5c922f976326b0e7f3036a2a7887c46eb6d 100644 |
--- a/content/browser/media/webrtc_internals.cc |
+++ b/content/browser/media/webrtc_internals.cc |
@@ -8,6 +8,7 @@ |
#include "base/strings/string_number_conversions.h" |
#include "build/build_config.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" |
@@ -281,11 +282,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 |
} |
@@ -450,12 +447,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_); |
} |
void WebRTCInternals::EnableEventLogRecordingsOnAllRenderProcessHosts() { |