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

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: Rebase. Created 5 years, 2 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 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

Powered by Google App Engine
This is Rietveld 408576698