Chromium Code Reviews| Index: webrtc/pc/mediasession.cc |
| diff --git a/webrtc/pc/mediasession.cc b/webrtc/pc/mediasession.cc |
| index fda38dfdffac330dfa47eca0eb39bd78347d2627..2f973deb7f6476a223d2b8713fa66906d18ba777 100644 |
| --- a/webrtc/pc/mediasession.cc |
| +++ b/webrtc/pc/mediasession.cc |
| @@ -749,9 +749,6 @@ static bool CreateMediaContentOffer( |
| MediaContentDescriptionImpl<C>* offer) { |
| offer->AddCodecs(codecs); |
| - if (secure_policy == SEC_REQUIRED) { |
| - offer->set_crypto_required(CT_SDES); |
| - } |
| offer->set_rtcp_mux(options.rtcp_mux_enabled); |
| if (offer->type() == cricket::MEDIA_TYPE_VIDEO) { |
| offer->set_rtcp_reduced_size(true); |
| @@ -777,7 +774,7 @@ static bool CreateMediaContentOffer( |
| } |
| #endif |
| - if (offer->crypto_required() == CT_SDES && offer->cryptos().empty()) { |
| + if (secure_policy == SEC_REQUIRED && offer->cryptos().empty()) { |
|
pthatcher1
2016/12/01 22:57:12
Could you put a TODO on the SecurePolicy enum to r
Taylor Brandstetter
2016/12/02 00:42:32
Done.
|
| return false; |
| } |
| return true; |
| @@ -1068,8 +1065,7 @@ static bool CreateMediaContentAnswer( |
| } |
| } |
| - if (answer->cryptos().empty() && |
| - (offer->crypto_required() == CT_SDES || sdes_policy == SEC_REQUIRED)) { |
| + if (answer->cryptos().empty() && sdes_policy == SEC_REQUIRED) { |
| return false; |
| } |