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

Unified Diff: chrome/browser/signin/chrome_proximity_auth_client.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky Created 4 years, 3 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
« no previous file with comments | « chrome/browser/shell_integration_win.cc ('k') | chrome/browser/signin/easy_unlock_app_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/chrome_proximity_auth_client.cc
diff --git a/chrome/browser/signin/chrome_proximity_auth_client.cc b/chrome/browser/signin/chrome_proximity_auth_client.cc
index caa128bd30f657100b6e46fa4bde7b731ca6ae64..a5a21d3804472ea75c1afb3fcd045ce70ce312ab 100644
--- a/chrome/browser/signin/chrome_proximity_auth_client.cc
+++ b/chrome/browser/signin/chrome_proximity_auth_client.cc
@@ -97,7 +97,7 @@ PrefService* ChromeProximityAuthClient::GetPrefService() {
std::unique_ptr<proximity_auth::SecureMessageDelegate>
ChromeProximityAuthClient::CreateSecureMessageDelegate() {
#if defined(OS_CHROMEOS)
- return base::WrapUnique(new chromeos::SecureMessageDelegateChromeOS());
+ return base::MakeUnique<chromeos::SecureMessageDelegateChromeOS>();
#else
return nullptr;
#endif
@@ -105,9 +105,9 @@ ChromeProximityAuthClient::CreateSecureMessageDelegate() {
std::unique_ptr<proximity_auth::CryptAuthClientFactory>
ChromeProximityAuthClient::CreateCryptAuthClientFactory() {
- return base::WrapUnique(new proximity_auth::CryptAuthClientFactoryImpl(
+ return base::MakeUnique<proximity_auth::CryptAuthClientFactoryImpl>(
ProfileOAuth2TokenServiceFactory::GetForProfile(profile_), GetAccountId(),
- profile_->GetRequestContext(), GetDeviceClassifier()));
+ profile_->GetRequestContext(), GetDeviceClassifier());
}
cryptauth::DeviceClassifier ChromeProximityAuthClient::GetDeviceClassifier() {
« no previous file with comments | « chrome/browser/shell_integration_win.cc ('k') | chrome/browser/signin/easy_unlock_app_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698