Chromium Code Reviews| Index: webrtc/p2p/base/transportdescriptionfactory.cc |
| diff --git a/webrtc/p2p/base/transportdescriptionfactory.cc b/webrtc/p2p/base/transportdescriptionfactory.cc |
| index e57b7e3efae3e30907e3d45fe01e7f6f5e95fe69..fede7914039acd64a29116d44c122d4481995605 100644 |
| --- a/webrtc/p2p/base/transportdescriptionfactory.cc |
| +++ b/webrtc/p2p/base/transportdescriptionfactory.cc |
| @@ -37,6 +37,9 @@ TransportDescription* TransportDescriptionFactory::CreateOffer( |
| desc->ice_ufrag = current_description->ice_ufrag; |
| desc->ice_pwd = current_description->ice_pwd; |
| } |
| + if (options.ice_renomination) { |
| + desc->AddOption(ICE_RENOMINATION_STR); |
| + } |
|
pthatcher1
2016/08/08 21:56:23
I don't see any unit test coverage for this.
honghaiz3
2016/08/11 04:57:58
Done.
|
| // If we are trying to establish a secure transport, add a fingerprint. |
| if (secure_ == SEC_ENABLED || secure_ == SEC_REQUIRED) { |
| @@ -71,6 +74,9 @@ TransportDescription* TransportDescriptionFactory::CreateAnswer( |
| desc->ice_ufrag = current_description->ice_ufrag; |
| desc->ice_pwd = current_description->ice_pwd; |
| } |
| + if (options.ice_renomination) { |
| + desc->AddOption(ICE_RENOMINATION_STR); |
| + } |
| // Negotiate security params. |
| if (offer && offer->identity_fingerprint.get()) { |