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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp

Issue 2677233002: Expose RTCPeerConnection.icegatheringstatechange. (Closed)
Patch Set: add onicegatheringstatechange test Created 3 years, 10 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: 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(

Powered by Google App Engine
This is Rietveld 408576698