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

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: Create a new handler for the internal WebRTC logs instead of using WebRTCLoggingHandlerHost. 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: 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 bcbd7aac30edfa75a4784f95fe5c21ec6ac1d976..d917b00047a0044df7a4308c7aea1701bf74711f 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -279,6 +279,7 @@
#endif
#if defined(ENABLE_WEBRTC)
+#include "chrome/browser/media/webrtc_internal_log_handler_host.h"
#include "chrome/browser/media/webrtc_logging_handler_host.h"
#endif
@@ -925,6 +926,16 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch(
host->AddFilter(webrtc_logging_handler_host);
host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>(
webrtc_logging_handler_host));
+
+ WebRtcInternalLogHandlerHost* webrtc_internal_log_handler_host =
+ new WebRtcInternalLogHandlerHost(
+ profile /*, g_browser_process->webrtc_log_uploader()*/);
tommi (sloooow) - chröme 2016/02/05 11:09:00 Something that's intended to be cleaned up? (next
terelius1 2016/02/16 20:09:12 Yes. Done.
+ // host->SetWebRtcLogMessageCallback(base::Bind(
+ // &WebRtcLoggingHandlerHost::LogMessage, webrtc_logging_handler_host));
+ host->AddFilter(webrtc_internal_log_handler_host);
+ host->SetUserData(host,
Henrik Grunell 2016/02/03 08:37:32 I think this will override the previous call above
terelius-chromium 2016/02/05 09:27:37 Just a follow-up after our discussion. Do you have
Henrik Grunell 2016/02/05 10:05:44 Yeah, the new class should not be a filter since i
terelius1 2016/02/16 20:09:12 Removed the filter. Added static const strings to
Henrik Grunell 2016/02/23 15:29:10 Acknowledged.
+ new base::UserDataAdapter<WebRtcInternalLogHandlerHost>(
+ webrtc_internal_log_handler_host));
#endif
#if !defined(DISABLE_NACL)
host->AddFilter(new nacl::NaClHostMessageFilter(

Powered by Google App Engine
This is Rietveld 408576698