| 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 10786f90d2311797de1ddc5cd6df19b0db9383f5..8fda6f1c307bfcde4cf828943f11b5a73b9815ac 100644
|
| --- a/content/renderer/media/rtc_peer_connection_handler.cc
|
| +++ b/content/renderer/media/rtc_peer_connection_handler.cc
|
| @@ -1245,6 +1245,11 @@ void RTCPeerConnectionHandler::setLocalDescription(
|
| std::string sdp = description.sdp().utf8();
|
| std::string type = description.type().utf8();
|
|
|
| + if (peer_connection_tracker_) {
|
| + peer_connection_tracker_->TrackSetSessionDescription(
|
| + this, sdp, type, PeerConnectionTracker::SOURCE_LOCAL);
|
| + }
|
| +
|
| webrtc::SdpParseError error;
|
| // Since CreateNativeSessionDescription uses the dependency factory, we need
|
| // to make this call on the current thread to be safe.
|
| @@ -1257,14 +1262,14 @@ void RTCPeerConnectionHandler::setLocalDescription(
|
| reason_str.append(error.description);
|
| LOG(ERROR) << reason_str;
|
| request.requestFailed(blink::WebString::fromUTF8(reason_str));
|
| + if (peer_connection_tracker_) {
|
| + peer_connection_tracker_->TrackSessionDescriptionCallback(
|
| + this, PeerConnectionTracker::ACTION_SET_LOCAL_DESCRIPTION,
|
| + "OnFailure", reason_str);
|
| + }
|
| return;
|
| }
|
|
|
| - if (peer_connection_tracker_) {
|
| - peer_connection_tracker_->TrackSetSessionDescription(
|
| - this, sdp, type, PeerConnectionTracker::SOURCE_LOCAL);
|
| - }
|
| -
|
| if (!first_local_description_ && IsOfferOrAnswer(native_desc)) {
|
| first_local_description_.reset(new FirstSessionDescription(native_desc));
|
| if (first_remote_description_) {
|
|
|