Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5018)

Unified Diff: chrome/browser/chromeos/attestation/fake_certificate.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/attestation/fake_certificate.cc
diff --git a/chrome/browser/chromeos/attestation/fake_certificate.cc b/chrome/browser/chromeos/attestation/fake_certificate.cc
index 3603593499211c9e998c04cc09b242c1773954db..1571bde762953afe2b531c5f69a5c3b3fa1df437 100644
--- a/chrome/browser/chromeos/attestation/fake_certificate.cc
+++ b/chrome/browser/chromeos/attestation/fake_certificate.cc
@@ -59,7 +59,7 @@ bool GetFakeCertificateDER(const base::TimeDelta& expiry,
if (valid_expiry <= valid_start) {
valid_start = valid_expiry - base::TimeDelta::FromDays(1);
}
- scoped_ptr<crypto::RSAPrivateKey> test_key(
+ std::unique_ptr<crypto::RSAPrivateKey> test_key(
crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(std::vector<uint8_t>(
&kTestKeyData[0], &kTestKeyData[arraysize(kTestKeyData)])));
if (!test_key.get()) {

Powered by Google App Engine
This is Rietveld 408576698