Index: content/renderer/media/peer_connection_tracker.cc |
diff --git a/content/renderer/media/peer_connection_tracker.cc b/content/renderer/media/peer_connection_tracker.cc |
index 203ba8b6202db4b046e4e51897ccb820d13d23f6..b3b1c33949bf3904405fe0e6acf87220e571e830 100644 |
--- a/content/renderer/media/peer_connection_tracker.cc |
+++ b/content/renderer/media/peer_connection_tracker.cc |
@@ -152,6 +152,9 @@ static string GetIceGatheringStateString( |
// Builds a DictionaryValue from the StatsReport. |
// The caller takes the ownership of the returned value. |
+// Note: |
+// The format must be consistent with what webrtc_internals.js expects. |
+// If you change it here, you must change webrtc_internals.js as well. |
static DictionaryValue* GetDictValueStats(const webrtc::StatsReport& report) { |
if (report.values.empty()) |
return NULL; |
@@ -188,6 +191,9 @@ static DictionaryValue* GetDictValue(const webrtc::StatsReport& report) { |
if (!result.get()) |
return NULL; |
+ // Note: |
+ // The format must be consistent with what webrtc_internals.js expects. |
+ // If you change it here, you must change webrtc_internals.js as well. |
if (stats.get()) |
result->Set("stats", stats.release()); |
result->SetString("id", report.id); |