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

Unified Diff: webrtc/p2p/base/faketransportcontroller.h

Issue 1996693002: Fire a signal when the transport channel state changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 7 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: webrtc/p2p/base/faketransportcontroller.h
diff --git a/webrtc/p2p/base/faketransportcontroller.h b/webrtc/p2p/base/faketransportcontroller.h
index 321537dd59be79b5e3efa2d9349f1c82c7c544a2..d86131ce2908151a7c421e610818a87b4bcd1fb6 100644
--- a/webrtc/p2p/base/faketransportcontroller.h
+++ b/webrtc/p2p/base/faketransportcontroller.h
@@ -170,8 +170,10 @@ class FakeTransportChannel : public TransportChannelImpl,
connection_count_ = connection_count;
if (connection_count)
had_connection_ = true;
+ // In this fake transport channel, |connection_count_| determines the
+ // transport channel state.
if (connection_count_ < old_connection_count)
- SignalConnectionRemoved(this);
+ SignalChannelStateChanged(this);
}
void SetCandidatesGatheringComplete() {

Powered by Google App Engine
This is Rietveld 408576698