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

Unified Diff: components/proximity_auth/cryptauth_enroller_factory_impl.cc

Issue 2250023005: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/proximity_auth/cryptauth_enroller_factory_impl.cc
diff --git a/components/proximity_auth/cryptauth_enroller_factory_impl.cc b/components/proximity_auth/cryptauth_enroller_factory_impl.cc
index 35f576d7e2f00b1f68d2eaf70ea91ecc77aea0a8..1d0ffef982bd1457434eccb730b5365512ed6ddd 100644
--- a/components/proximity_auth/cryptauth_enroller_factory_impl.cc
+++ b/components/proximity_auth/cryptauth_enroller_factory_impl.cc
@@ -19,9 +19,9 @@ CryptAuthEnrollerFactoryImpl::~CryptAuthEnrollerFactoryImpl() {}
std::unique_ptr<CryptAuthEnroller>
CryptAuthEnrollerFactoryImpl::CreateInstance() {
- return base::WrapUnique(new CryptAuthEnrollerImpl(
+ return base::MakeUnique<CryptAuthEnrollerImpl>(
proximity_auth_client_->CreateCryptAuthClientFactory(),
- proximity_auth_client_->CreateSecureMessageDelegate()));
+ proximity_auth_client_->CreateSecureMessageDelegate());
}
} // namespace proximity_auth

Powered by Google App Engine
This is Rietveld 408576698