Chromium Code Reviews| Index: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp |
| diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp |
| index 85cb675df52591ff30a073a66e2606b8d9868286..f84414a052ad188a1a669ac02d6b50053bb9ba16 100644 |
| --- a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp |
| +++ b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp |
| @@ -1389,7 +1389,11 @@ void RTCPeerConnection::changeSignalingState(SignalingState signalingState) { |
| void RTCPeerConnection::changeIceGatheringState( |
| ICEGatheringState iceGatheringState) { |
| - m_iceGatheringState = iceGatheringState; |
| + if (m_iceConnectionState != ICEConnectionStateClosed && |
|
hbos_chromium
2017/02/08 12:21:24
To me it's not clear what the ICE agent[1] should
fippo
2017/02/08 12:46:03
SGTM -- change the state but not emit an event.
fippo
2017/02/08 12:50:35
https://w3c.github.io/webrtc-pc/#operation actuall
hbos_chromium
2017/02/08 13:52:54
Setting [[isClosed]] to false is the last step of
|
| + m_iceGatheringState != iceGatheringState) { |
| + m_iceGatheringState = iceGatheringState; |
| + scheduleDispatchEvent(Event::create(EventTypeNames::icegatheringstatechange)); |
|
hta - Chromium
2017/02/08 13:35:21
Remember to run "git cl format" in your client and
|
| + } |
| } |
| bool RTCPeerConnection::setIceConnectionState( |