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

Unified Diff: content/browser/media/webrtc_internals.cc

Issue 1246283003: Split out audio debug recording from RenderProcessHostImpl. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile. Created 4 years, 11 months 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/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() {

Powered by Google App Engine
This is Rietveld 408576698