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

Unified Diff: components/sync/engine/fake_sync_manager.cc

Issue 2422253002: [Sync] Rewriting ".reset(new" pattern to use "= base::MakeUnique" instead. (Closed)
Patch Set: Fixing compile. Created 4 years, 2 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/engine/fake_sync_manager.cc
diff --git a/components/sync/engine/fake_sync_manager.cc b/components/sync/engine/fake_sync_manager.cc
index 9dc6753a0cb2b12ed98421a6462c148b95b7ad08..b087371be9ba34213ee47b86af652a3d209ed45a 100644
--- a/components/sync/engine/fake_sync_manager.cc
+++ b/components/sync/engine/fake_sync_manager.cc
@@ -34,7 +34,7 @@ FakeSyncManager::FakeSyncManager(ModelTypeSet initial_sync_ended_types,
configure_fail_types_(configure_fail_types),
last_configure_reason_(CONFIGURE_REASON_UNKNOWN),
num_invalidations_received_(0) {
- fake_encryption_handler_.reset(new FakeSyncEncryptionHandler());
+ fake_encryption_handler_ = base::MakeUnique<FakeSyncEncryptionHandler>();
}
FakeSyncManager::~FakeSyncManager() {}
« no previous file with comments | « components/sync/engine/attachments/on_disk_attachment_store.cc ('k') | components/sync/engine/net/http_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698