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

Unified Diff: chrome/browser/resources/hangout_services/thunk.js

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: 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/resources/hangout_services/thunk.js
diff --git a/chrome/browser/resources/hangout_services/thunk.js b/chrome/browser/resources/hangout_services/thunk.js
index db1500699075e443f08832d10c624a107c05bacb..c27428171f87e0cf15445268022789bcd9a0a3d6 100644
--- a/chrome/browser/resources/hangout_services/thunk.js
+++ b/chrome/browser/resources/hangout_services/thunk.js
@@ -172,7 +172,17 @@ chrome.runtime.onMessageExternal.addListener(
chrome.webrtcLoggingPrivate.stopAudioDebugRecordings(
requestInfo, origin, doSendResponse);
return true;
+ } else if (method == 'logging.startRtcEventLogging') {
+ var seconds = message['seconds'] || 0;
+ chrome.webrtcLoggingPrivate.startRtcEventLogging(
+ requestInfo, origin, seconds, doSendResponse);
+ return true;
+ } else if (method == 'logging.stopRtcEventLogging') {
+ chrome.webrtcLoggingPrivate.stopRtcEventLogging(
+ requestInfo, origin, doSendResponse);
+ return true;
}
+
throw new Error('Unknown method: ' + method);
} catch (e) {
doSendResponse(null, e.name + ': ' + e.message);

Powered by Google App Engine
This is Rietveld 408576698