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

Unified Diff: chrome/browser/media/webrtc/webrtc_text_log_handler.cc

Issue 2538793002: Log audio system used to WebRTC log. (Closed)
Patch Set: Code review. Created 4 years 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
« no previous file with comments | « no previous file | chromecast/media/audio/cast_audio_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/webrtc/webrtc_text_log_handler.cc
diff --git a/chrome/browser/media/webrtc/webrtc_text_log_handler.cc b/chrome/browser/media/webrtc/webrtc_text_log_handler.cc
index 18547faeb34165d5e97f82a0106532f2f783e642..ac58ac3f826466bed1cb2cc4d6f5e27eddbc7302 100644
--- a/chrome/browser/media/webrtc/webrtc_text_log_handler.cc
+++ b/chrome/browser/media/webrtc/webrtc_text_log_handler.cc
@@ -24,6 +24,7 @@
#include "content/public/browser/gpu_data_manager.h"
#include "content/public/browser/render_process_host.h"
#include "gpu/config/gpu_info.h"
+#include "media/audio/audio_manager.h"
#include "net/base/ip_address.h"
#include "net/base/network_change_notifier.h"
#include "net/base/network_interfaces.h"
@@ -474,6 +475,13 @@ void WebRtcTextLogHandler::LogInitialInfoOnIOThread(
", gl-renderer=" + gpu_info.gl_renderer +
", gl-version=" + gpu_info.gl_version);
+ // Audio manager
+ // On some platforms, this can vary depending on build flags and failure
+ // fallbacks. On Linux for example, we fallback on ALSA if PulseAudio fails to
+ // initialize.
+ LogToCircularBuffer(base::StringPrintf(
+ "Audio manager: %s", media::AudioManager::Get()->GetName()));
+
// Network interfaces
LogToCircularBuffer("Discovered " + base::SizeTToString(network_list.size()) +
" network interfaces:");
« no previous file with comments | « no previous file | chromecast/media/audio/cast_audio_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698