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

Unified Diff: chrome/browser/sync/profile_sync_service_factory.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/sync/chrome_sync_client.cc ('k') | chrome/browser/sync/profile_sync_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service_factory.cc
diff --git a/chrome/browser/sync/profile_sync_service_factory.cc b/chrome/browser/sync/profile_sync_service_factory.cc
index b485f60fde017820800299082f705cb56e57b9b5..2c0ae010c6dbad6b892f1141c8fb1f78a2fb486c 100644
--- a/chrome/browser/sync/profile_sync_service_factory.cc
+++ b/chrome/browser/sync/profile_sync_service_factory.cc
@@ -154,7 +154,7 @@ KeyedService* ProfileSyncServiceFactory::BuildServiceInstanceFor(
AboutSigninInternalsFactory::GetForProfile(profile);
init_params.signin_wrapper =
- base::WrapUnique(new SupervisedUserSigninManagerWrapper(profile, signin));
+ base::MakeUnique<SupervisedUserSigninManagerWrapper>(profile, signin);
init_params.oauth2_token_service =
ProfileOAuth2TokenServiceFactory::GetForProfile(profile);
init_params.gaia_cookie_manager_service =
@@ -171,7 +171,7 @@ KeyedService* ProfileSyncServiceFactory::BuildServiceInstanceFor(
: ProfileSyncService::MANUAL_START;
init_params.sync_client =
- base::WrapUnique(new browser_sync::ChromeSyncClient(profile));
+ base::MakeUnique<browser_sync::ChromeSyncClient>(profile);
init_params.network_time_update_callback = base::Bind(&UpdateNetworkTime);
init_params.base_directory = profile->GetPath();
@@ -185,7 +185,7 @@ KeyedService* ProfileSyncServiceFactory::BuildServiceInstanceFor(
content::BrowserThread::FILE);
init_params.blocking_pool = content::BrowserThread::GetBlockingPool();
- auto pss = base::WrapUnique(new ProfileSyncService(std::move(init_params)));
+ auto pss = base::MakeUnique<ProfileSyncService>(std::move(init_params));
// Will also initialize the sync client.
pss->Initialize();
« no previous file with comments | « chrome/browser/sync/chrome_sync_client.cc ('k') | chrome/browser/sync/profile_sync_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698