Chromium Code Reviews

Unified Diff: webrtc/p2p/base/dtlstransport.h

Issue 1304043008: Replacing SSLIdentity* with scoped_refptr<RTCCertificate> in TransportChannel layer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: webrtc/p2p/base/dtlstransport.h
diff --git a/webrtc/p2p/base/dtlstransport.h b/webrtc/p2p/base/dtlstransport.h
index 9fd3ba3274ad585e3196bfc36989f763510f650e..8850cfc29a3ab767ab7fc7a2b0b0a00d87c5951b 100644
--- a/webrtc/p2p/base/dtlstransport.h
+++ b/webrtc/p2p/base/dtlstransport.h
@@ -92,9 +92,7 @@ class DtlsTransport : public Base {
certificate_ = nullptr;
}
- // TODO(hbos): SetLocalCertificate
- if (!channel->SetLocalIdentity(
- certificate_ ? certificate_->identity() : nullptr)) {
+ if (!channel->SetLocalCertificate(certificate_)) {
return BadTransportDescription("Failed to set local identity.",
error_desc);
}

Powered by Google App Engine