Index: webrtc/api/statscollector.cc |
diff --git a/webrtc/api/statscollector.cc b/webrtc/api/statscollector.cc |
index 7fb0c2b7b3aef4946ddd9e73546dcab22c3c2f90..d77953b3bed1d49bb75a3be6a35c5d10f91c382b 100644 |
--- a/webrtc/api/statscollector.cc |
+++ b/webrtc/api/statscollector.cc |
@@ -575,8 +575,8 @@ StatsReport* StatsCollector::AddCertificateReports( |
RTC_DCHECK(cert != NULL); |
StatsReport* issuer = nullptr; |
- rtc::scoped_ptr<rtc::SSLCertChain> chain; |
- if (cert->GetChain(chain.accept())) { |
+ rtc::scoped_ptr<rtc::SSLCertChain> chain = cert->GetChain(); |
+ if (chain) { |
// This loop runs in reverse, i.e. from root to leaf, so that each |
// certificate's issuer's report ID is known before the child certificate's |
// report is generated. The root certificate does not have an issuer ID |