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

Unified Diff: components/cast_certificate/cast_crl.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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: components/cast_certificate/cast_crl.cc
diff --git a/components/cast_certificate/cast_crl.cc b/components/cast_certificate/cast_crl.cc
index c1b15be848ae19223bd12cad6e2318334132d4f6..1fd52eb0300ff14932c33189dce88f93303268e1 100644
--- a/components/cast_certificate/cast_crl.cc
+++ b/components/cast_certificate/cast_crl.cc
@@ -92,7 +92,7 @@ bool ConvertTimeSeconds(uint64_t seconds,
// The required algorithms are:
// RSASSA PKCS#1 v1.5 with SHA-256, using RSA keys 2048-bits or longer.
std::unique_ptr<net::SignaturePolicy> CreateCastSignaturePolicy() {
- return base::WrapUnique(new net::SimpleSignaturePolicy(2048));
+ return base::MakeUnique<net::SimpleSignaturePolicy>(2048);
}
// Verifies the CRL is signed by a trusted CRL authority at the time the CRL
@@ -338,7 +338,7 @@ std::unique_ptr<CastCRL> ParseAndVerifyCRL(const std::string& crl_proto,
LOG(ERROR) << "CRL - Verification failed.";
return nullptr;
}
- return base::WrapUnique(new CastCRLImpl(tbs_crl, overall_not_after));
+ return base::MakeUnique<CastCRLImpl>(tbs_crl, overall_not_after);
}
LOG(ERROR) << "No supported version of revocation data.";
return nullptr;
« no previous file with comments | « components/cast_certificate/cast_cert_validator.cc ('k') | components/certificate_reporting/error_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698