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

Unified Diff: components/proximity_auth/mock_proximity_auth_client.cc

Issue 1912433002: Convert //components/proximity_auth from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits 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: components/proximity_auth/mock_proximity_auth_client.cc
diff --git a/components/proximity_auth/mock_proximity_auth_client.cc b/components/proximity_auth/mock_proximity_auth_client.cc
index 71d81855fb4d8d4d412d2529172c91596990def6..582d02b4623e0254d92177b5212176fc52088302 100644
--- a/components/proximity_auth/mock_proximity_auth_client.cc
+++ b/components/proximity_auth/mock_proximity_auth_client.cc
@@ -4,20 +4,22 @@
#include "components/proximity_auth/mock_proximity_auth_client.h"
+#include "base/memory/ptr_util.h"
+
namespace proximity_auth {
MockProximityAuthClient::MockProximityAuthClient() {}
MockProximityAuthClient::~MockProximityAuthClient() {}
-scoped_ptr<SecureMessageDelegate>
+std::unique_ptr<SecureMessageDelegate>
MockProximityAuthClient::CreateSecureMessageDelegate() {
- return make_scoped_ptr(CreateSecureMessageDelegatePtr());
+ return base::WrapUnique(CreateSecureMessageDelegatePtr());
}
-scoped_ptr<CryptAuthClientFactory>
+std::unique_ptr<CryptAuthClientFactory>
MockProximityAuthClient::CreateCryptAuthClientFactory() {
- return make_scoped_ptr(CreateCryptAuthClientFactoryPtr());
+ return base::WrapUnique(CreateCryptAuthClientFactoryPtr());
}
} // proximity_auth
« no previous file with comments | « components/proximity_auth/mock_proximity_auth_client.h ('k') | components/proximity_auth/proximity_auth_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698