summaryrefslogtreecommitdiff
path: root/chromium/net/cert/x509_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/cert/x509_util.cc')
-rw-r--r--chromium/net/cert/x509_util.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chromium/net/cert/x509_util.cc b/chromium/net/cert/x509_util.cc
index b0e343acd91..51e7b6ac176 100644
--- a/chromium/net/cert/x509_util.cc
+++ b/chromium/net/cert/x509_util.cc
@@ -4,7 +4,8 @@
#include "net/cert/x509_util.h"
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/time/time.h"
#include "crypto/ec_private_key.h"
#include "crypto/rsa_private_key.h"
@@ -61,9 +62,9 @@ bool CreateKeyAndSelfSignedCert(const std::string& subject,
uint32_t serial_number,
base::Time not_valid_before,
base::Time not_valid_after,
- scoped_ptr<crypto::RSAPrivateKey>* key,
+ std::unique_ptr<crypto::RSAPrivateKey>* key,
std::string* der_cert) {
- scoped_ptr<crypto::RSAPrivateKey> new_key(
+ std::unique_ptr<crypto::RSAPrivateKey> new_key(
crypto::RSAPrivateKey::Create(kRSAKeyLength));
if (!new_key.get())
return false;