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

Unified Diff: content/browser/media/webrtc/webrtc_internals_message_handler.cc

Issue 1855193002: Move the call to enable the WebRTC event log from PeerConnectionFactory to PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from Henrik and enabled logging for newly created render processes. Created 4 years, 7 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/webrtc_internals_message_handler.cc
diff --git a/content/browser/media/webrtc/webrtc_internals_message_handler.cc b/content/browser/media/webrtc/webrtc_internals_message_handler.cc
index eaaea95a73da8d4513942fbd79af71dece83f50a..ea74c5bb4eca30dc2b3128187ee24fc3e1a4ec1c 100644
--- a/content/browser/media/webrtc/webrtc_internals_message_handler.cc
+++ b/content/browser/media/webrtc/webrtc_internals_message_handler.cc
@@ -94,8 +94,12 @@ void WebRTCInternalsMessageHandler::OnSetAudioDebugRecordingsEnabled(
void WebRTCInternalsMessageHandler::OnSetEventLogRecordingsEnabled(
bool enable,
const base::ListValue* /* unused_list */) {
- WebRTCInternals::GetInstance()->SetEventLogRecordings(
- enable, enable ? web_ui()->GetWebContents() : nullptr);
+ if (enable) {
+ WebRTCInternals::GetInstance()->EnableEventLogRecordings(
+ web_ui()->GetWebContents());
+ } else {
+ WebRTCInternals::GetInstance()->DisableEventLogRecordings();
+ }
}
void WebRTCInternalsMessageHandler::OnDOMLoadDone(

Powered by Google App Engine
This is Rietveld 408576698