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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1650133002: Start and stop RTC event logs from private extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some comments from tommi Created 4 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webrtc_logging_private/webrtc_event_log_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 8bb7ef2d57186aa7f0ce4610329d2a6c7426e220..b08e58d6f1ad83398a7a61b7b32fc760f0657148 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -290,6 +290,8 @@
#endif
#if defined(ENABLE_WEBRTC)
+#include "chrome/browser/media/audio_debug_recordings_handler.h"
+#include "chrome/browser/media/webrtc_event_log_handler.h"
#include "chrome/browser/media/webrtc_logging_handler_host.h"
#endif
@@ -948,8 +950,22 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch(
new WebRtcLoggingHandlerHost(id, profile,
g_browser_process->webrtc_log_uploader());
host->AddFilter(webrtc_logging_handler_host);
- host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>(
- webrtc_logging_handler_host));
+ host->SetUserData(WebRtcLoggingHandlerHost::kWebRtcLoggingHandlerHostKey,
+ new base::UserDataAdapter<WebRtcLoggingHandlerHost>(
+ webrtc_logging_handler_host));
+
+ AudioDebugRecordingsHandler* audio_debug_recordings_handler =
+ new AudioDebugRecordingsHandler(profile);
+ host->SetUserData(
+ AudioDebugRecordingsHandler::kAudioDebugRecordingsHandlerKey,
+ new base::UserDataAdapter<AudioDebugRecordingsHandler>(
+ audio_debug_recordings_handler));
+
+ WebRtcEventLogHandler* webrtc_event_log_handler =
+ new WebRtcEventLogHandler(profile);
+ host->SetUserData(WebRtcEventLogHandler::kWebRtcEventLogHandlerKey,
+ new base::UserDataAdapter<WebRtcEventLogHandler>(
+ webrtc_event_log_handler));
#endif
#if !defined(DISABLE_NACL)
host->AddFilter(new nacl::NaClHostMessageFilter(
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webrtc_logging_private/webrtc_event_log_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698