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

Unified Diff: content/browser/resources/media/dump_creator.js

Issue 129833002: Add getUserMedia info to the dump and add browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: content/browser/resources/media/dump_creator.js
diff --git a/content/browser/resources/media/dump_creator.js b/content/browser/resources/media/dump_creator.js
index 28c53dd9e22bd6f57d49986f4d2bea115001b535..70dee7382bb2f0c74ebfe0b396643b8242af4033 100644
--- a/content/browser/resources/media/dump_creator.js
+++ b/content/browser/resources/media/dump_creator.js
@@ -58,10 +58,15 @@ var DumpCreator = (function() {
* @private
*/
onDownloadData_: function() {
- var textBlob =
- new Blob([JSON.stringify(peerConnectionDataStore, null, ' ')],
- {type: 'octet/stream'});
+ var dump_object =
+ {
+ 'getUserMedia': userMediaRequests,
+ 'PeerConnections': peerConnectionDataStore,
+ };
+ var textBlob = new Blob([JSON.stringify(dump_object, null, ' ')],
+ {type: 'octet/stream'});
var URL = window.URL.createObjectURL(textBlob);
+
this.root_.getElementsByTagName('a')[0].href = URL;
// The default action of the anchor will download the URL.
},
« no previous file with comments | « content/browser/media/webrtc_internals_browsertest.cc ('k') | content/browser/resources/media/webrtc_internals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698