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

Unified Diff: content/renderer/media/rtc_peer_connection_handler.cc

Issue 2618263004: webrtc-internals: show addIceCandidate when it fails (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_peer_connection_handler.cc
diff --git a/content/renderer/media/rtc_peer_connection_handler.cc b/content/renderer/media/rtc_peer_connection_handler.cc
index bf7b89e94a01f0714c249f38de5accc15a489041..1ddbca2b08c4a8882c4c3118a356051dd1f1c176 100644
--- a/content/renderer/media/rtc_peer_connection_handler.cc
+++ b/content/renderer/media/rtc_peer_connection_handler.cc
@@ -1432,6 +1432,11 @@ bool RTCPeerConnectionHandler::addICECandidate(
}
if (peer_connection_tracker_) {
+ if (!return_value) {
+ // Ensure that addIceCandidate shows up even if there is an error.
tommi (sloooow) - chröme 2017/01/09 14:41:17 reporting this twice intentionally?
fippo 2017/01/09 15:09:32 Yes. The first one (with the true argument) genera
hta - Chromium 2017/01/16 09:12:22 The original logic seemed to be that you logged ei
+ peer_connection_tracker_->TrackAddIceCandidate(
+ this, candidate, PeerConnectionTracker::SOURCE_REMOTE, true);
+ }
peer_connection_tracker_->TrackAddIceCandidate(
this, candidate, PeerConnectionTracker::SOURCE_REMOTE, return_value);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698