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

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

Issue 2832263004: Fixing some strings that go into webrtc-internals. (Closed)
Patch Set: Created 3 years, 8 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/peer_connection_update_table.js
diff --git a/content/browser/resources/media/peer_connection_update_table.js b/content/browser/resources/media/peer_connection_update_table.js
index d6795d59c005088d7abf3d1fa23c8bbfade8f912..167929f6c0f86d5be1ce1d82340cc523eac0b7b8 100644
--- a/content/browser/resources/media/peer_connection_update_table.js
+++ b/content/browser/resources/media/peer_connection_update_table.js
@@ -129,28 +129,28 @@ var PeerConnectionUpdateTable = (function() {
// change the JSON dump.
if (update.type === 'iceConnectionStateChange') {
value = {
- ICEConnectionStateNew: 'new',
- ICEConnectionStateChecking: 'checking',
- ICEConnectionStateConnected: 'connected',
- ICEConnectionStateCompleted: 'completed',
- ICEConnectionStateFailed: 'failed',
- ICEConnectionStateDisconnected: 'disconnected',
- ICEConnectionStateClosed: 'closed',
+ kICEConnectionStateNew: 'new',
+ kICEConnectionStateChecking: 'checking',
+ kICEConnectionStateConnected: 'connected',
+ kICEConnectionStateCompleted: 'completed',
+ kICEConnectionStateFailed: 'failed',
+ kICEConnectionStateDisconnected: 'disconnected',
+ kICEConnectionStateClosed: 'closed',
}[value] || value;
} else if (update.type === 'iceGatheringStateChange') {
value = {
- ICEGatheringStateNew: 'new',
- ICEGatheringStateGathering: 'gathering',
- ICEGatheringStateComplete: 'complete',
+ kICEGatheringStateNew: 'new',
+ kICEGatheringStateGathering: 'gathering',
+ kICEGatheringStateComplete: 'complete',
}[value] || value;
} else if (update.type === 'signalingStateChange') {
value = {
- SignalingStateStable: 'stable',
- SignalingStateHaveLocalOffer: 'have-local-offer',
- SignalingStateHaveRemoteOffer: 'have-remote-offer',
- SignalingStateHaveLocalPrAnswer: 'have-local-pranswer',
- SignalingStateHaveRemotePrAnswer: 'have-remote-pranswer',
- SignalingStateClosed: 'closed',
+ kSignalingStateStable: 'stable',
+ kSignalingStateHaveLocalOffer: 'have-local-offer',
+ kSignalingStateHaveRemoteOffer: 'have-remote-offer',
+ kSignalingStateHaveLocalPrAnswer: 'have-local-pranswer',
+ kSignalingStateHaveRemotePrAnswer: 'have-remote-pranswer',
+ kSignalingStateClosed: 'closed',
}[value] || value;
}
« no previous file with comments | « no previous file | content/renderer/media/peer_connection_tracker.cc » ('j') | content/renderer/media/peer_connection_tracker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698