Index: talk/app/webrtc/statscollector.cc |
diff --git a/talk/app/webrtc/statscollector.cc b/talk/app/webrtc/statscollector.cc |
index 6e2c950e22c0d956ff6dd5b687bb807746475297..021234709dc2983af631f81db01df8db4ac18de5 100644 |
--- a/talk/app/webrtc/statscollector.cc |
+++ b/talk/app/webrtc/statscollector.cc |
@@ -734,12 +734,10 @@ |
channel_report->AddString(StatsReport::kStatsValueNameSrtpCipher, |
srtp_cipher); |
} |
- uint16_t ssl_cipher = channel_iter.ssl_cipher; |
- if (ssl_cipher && |
- rtc::SSLStreamAdapter::GetSslCipherSuiteName(ssl_cipher).length()) { |
- channel_report->AddString( |
- StatsReport::kStatsValueNameDtlsCipher, |
- rtc::SSLStreamAdapter::GetSslCipherSuiteName(ssl_cipher)); |
+ const std::string& ssl_cipher = channel_iter.ssl_cipher; |
+ if (!ssl_cipher.empty()) { |
+ channel_report->AddString(StatsReport::kStatsValueNameDtlsCipher, |
+ ssl_cipher); |
} |
int connection_id = 0; |