Chromium Code Reviews| Index: webrtc/p2p/base/transport.cc |
| diff --git a/webrtc/p2p/base/transport.cc b/webrtc/p2p/base/transport.cc |
| index b8d98100cf3af1f8b93b98e0362c15132ece9cd2..3e4c57c877e070d8cacc11ced0da426283f61c3c 100644 |
| --- a/webrtc/p2p/base/transport.cc |
| +++ b/webrtc/p2p/base/transport.cc |
| @@ -227,22 +227,6 @@ void Transport::ConnectChannels() { |
| connect_requested_ = true; |
| - if (!local_description_) { |
| - // TOOD(mallinath) : TransportDescription(TD) shouldn't be generated here. |
| - // As Transport must know TD is offer or answer and cricket::Transport |
| - // doesn't have the capability to decide it. This should be set by the |
| - // Session. |
| - // Session must generate local TD before remote candidates pushed when |
| - // initiate request initiated by the remote. |
| - LOG(LS_INFO) << "Transport::ConnectChannels: No local description has " |
| - << "been set. Will generate one."; |
| - TransportDescription desc(std::vector<std::string>(), |
| - rtc::CreateRandomString(ICE_UFRAG_LENGTH), |
| - rtc::CreateRandomString(ICE_PWD_LENGTH), |
| - ICEMODE_FULL, CONNECTIONROLE_NONE, nullptr); |
| - SetLocalTransportDescription(desc, CA_OFFER, nullptr); |
| - } |
| - |
|
Taylor Brandstetter
2016/04/01 00:43:07
Can you add "RTC_DCHECK(local_description_ != null
|
| CallChannels(&TransportChannelImpl::Connect); |
| } |