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

Unified Diff: components/sync/core_impl/sync_manager_impl.cc

Issue 2256733004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
Index: components/sync/core_impl/sync_manager_impl.cc
diff --git a/components/sync/core_impl/sync_manager_impl.cc b/components/sync/core_impl/sync_manager_impl.cc
index b7469ffcc0d5351a31d2d433f227669cdcd3b258..4f8718de82d190a8e6e06055f3964206da45d050 100644
--- a/components/sync/core_impl/sync_manager_impl.cc
+++ b/components/sync/core_impl/sync_manager_impl.cc
@@ -912,8 +912,8 @@ UserShare* SyncManagerImpl::GetUserShare() {
std::unique_ptr<syncer_v2::ModelTypeConnector>
SyncManagerImpl::GetModelTypeConnectorProxy() {
DCHECK(initialized_);
- return base::WrapUnique(new syncer_v2::ModelTypeConnectorProxy(
- base::ThreadTaskRunnerHandle::Get(), model_type_registry_->AsWeakPtr()));
+ return base::MakeUnique<syncer_v2::ModelTypeConnectorProxy>(
+ base::ThreadTaskRunnerHandle::Get(), model_type_registry_->AsWeakPtr());
}
const std::string SyncManagerImpl::cache_guid() {
« no previous file with comments | « components/sync/core_impl/model_type_connector_proxy_unittest.cc ('k') | components/sync/core_impl/test/fake_sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698