Index: webrtc/base/fakesslidentity.h |
diff --git a/webrtc/base/fakesslidentity.h b/webrtc/base/fakesslidentity.h |
index 47ff86d03a827ebdf3a9a72f0bb6bf65ae278609..6640b029c9b0aa01b768b13502302539a726339d 100644 |
--- a/webrtc/base/fakesslidentity.h |
+++ b/webrtc/base/fakesslidentity.h |
@@ -12,6 +12,7 @@ |
#define WEBRTC_BASE_FAKESSLIDENTITY_H_ |
#include <algorithm> |
+#include <memory> |
#include <vector> |
#include "webrtc/base/common.h" |
@@ -68,12 +69,12 @@ class FakeSSLCertificate : public rtc::SSLCertificate { |
digest, size); |
return (*length != 0); |
} |
- virtual rtc::scoped_ptr<SSLCertChain> GetChain() const { |
+ virtual std::unique_ptr<SSLCertChain> GetChain() const { |
if (certs_.empty()) |
return nullptr; |
std::vector<SSLCertificate*> new_certs(certs_.size()); |
std::transform(certs_.begin(), certs_.end(), new_certs.begin(), DupCert); |
- rtc::scoped_ptr<SSLCertChain> chain(new SSLCertChain(new_certs)); |
+ std::unique_ptr<SSLCertChain> chain(new SSLCertChain(new_certs)); |
std::for_each(new_certs.begin(), new_certs.end(), DeleteCert); |
return chain; |
} |