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

Unified Diff: components/browser_sync/browser/profile_sync_test_util.cc

Issue 2256813005: 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
« no previous file with comments | « components/browser_sync/browser/profile_sync_service_typed_url_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_sync/browser/profile_sync_test_util.cc
diff --git a/components/browser_sync/browser/profile_sync_test_util.cc b/components/browser_sync/browser/profile_sync_test_util.cc
index 25578299b3d8d4271220eb7073ddb128e66f7158..03925bbc094562181c92c65c34e2a1b52fcbbde3 100644
--- a/components/browser_sync/browser/profile_sync_test_util.cc
+++ b/components/browser_sync/browser/profile_sync_test_util.cc
@@ -217,14 +217,14 @@ void ProfileSyncServiceBundle::SyncClientBuilder::SetBookmarkModelCallback(
std::unique_ptr<sync_driver::FakeSyncClient>
ProfileSyncServiceBundle::SyncClientBuilder::Build() {
- return base::WrapUnique(new BundleSyncClient(
+ return base::MakeUnique<BundleSyncClient>(
bundle_->component_factory(), bundle_->pref_service(),
bundle_->sync_sessions_client(), personal_data_manager_,
get_syncable_service_callback_, get_sync_service_callback_,
get_bookmark_model_callback_,
activate_model_creation_ ? bundle_->db_thread() : nullptr,
activate_model_creation_ ? base::ThreadTaskRunnerHandle::Get() : nullptr,
- history_service_));
+ history_service_);
}
ProfileSyncServiceBundle::ProfileSyncServiceBundle()
@@ -257,7 +257,7 @@ ProfileSyncService::InitParams ProfileSyncServiceBundle::CreateBasicInitParams(
init_params.start_behavior = start_behavior;
init_params.sync_client = std::move(sync_client);
init_params.signin_wrapper =
- base::WrapUnique(new SigninManagerWrapper(signin_manager()));
+ base::MakeUnique<SigninManagerWrapper>(signin_manager());
init_params.oauth2_token_service = auth_service();
init_params.network_time_update_callback =
base::Bind(&EmptyNetworkTimeUpdate);
« no previous file with comments | « components/browser_sync/browser/profile_sync_service_typed_url_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698