Index: webrtc/api/java/jni/peerconnection_jni.cc |
diff --git a/webrtc/api/java/jni/peerconnection_jni.cc b/webrtc/api/java/jni/peerconnection_jni.cc |
index fdd2d44bae196779f1c1ffbdfb29e19b7d7f8cf2..1a31885d89fe3670c31203391b65bea127342ca8 100644 |
--- a/webrtc/api/java/jni/peerconnection_jni.cc |
+++ b/webrtc/api/java/jni/peerconnection_jni.cc |
@@ -40,6 +40,7 @@ |
#define JNIEXPORT __attribute__((visibility("default"))) |
#include <limits> |
+#include <memory> |
#include <utility> |
#include "webrtc/api/androidvideocapturer.h" |
@@ -1565,7 +1566,7 @@ JOW(jlong, PeerConnectionFactory_nativeCreatePeerConnection)( |
// Create ECDSA certificate. |
if (JavaKeyTypeToNativeType(jni, j_key_type) == rtc::KT_ECDSA) { |
- scoped_ptr<rtc::SSLIdentity> ssl_identity( |
+ std::unique_ptr<rtc::SSLIdentity> ssl_identity( |
rtc::SSLIdentity::Generate(webrtc::kIdentityName, rtc::KT_ECDSA)); |
if (ssl_identity.get()) { |
rtc_config.certificates.push_back( |