refactor: use std::make_unique/base::MakeRefCounted when possible (#29637)

This commit is contained in:
Milan Burda 2021-06-15 02:37:55 +02:00 committed by GitHub
parent ebf54d7cc0
commit 56ac67e059
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 5 deletions

View file

@ -133,7 +133,7 @@ void CertificateManagerModel::DidGetCertDBOnUIThread(
CreationCallback callback) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
std::unique_ptr<CertificateManagerModel> model(
auto model = base::WrapUnique(
new CertificateManagerModel(cert_db, is_user_db_available));
std::move(callback).Run(std::move(model));
}