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 b23eefb774477d3c50beeb6ee1805aa543a8328f..35f576d7e2f00b1f68d2eaf70ea91ecc77aea0a8 100644 |
--- a/components/proximity_auth/cryptauth_enroller_factory_impl.cc |
+++ b/components/proximity_auth/cryptauth_enroller_factory_impl.cc |
@@ -4,6 +4,7 @@ |
#include "components/proximity_auth/cryptauth_enroller_factory_impl.h" |
+#include "base/memory/ptr_util.h" |
#include "components/proximity_auth/cryptauth/cryptauth_client_impl.h" |
#include "components/proximity_auth/cryptauth/cryptauth_enroller_impl.h" |
#include "components/proximity_auth/cryptauth/secure_message_delegate.h" |
@@ -16,8 +17,9 @@ CryptAuthEnrollerFactoryImpl::CryptAuthEnrollerFactoryImpl( |
CryptAuthEnrollerFactoryImpl::~CryptAuthEnrollerFactoryImpl() {} |
-scoped_ptr<CryptAuthEnroller> CryptAuthEnrollerFactoryImpl::CreateInstance() { |
- return make_scoped_ptr(new CryptAuthEnrollerImpl( |
+std::unique_ptr<CryptAuthEnroller> |
+CryptAuthEnrollerFactoryImpl::CreateInstance() { |
+ return base::WrapUnique(new CryptAuthEnrollerImpl( |
proximity_auth_client_->CreateCryptAuthClientFactory(), |
proximity_auth_client_->CreateSecureMessageDelegate())); |
} |