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

Unified Diff: components/sync/driver/backend_migrator_unittest.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/driver/backend_migrator_unittest.cc
diff --git a/components/sync/driver/backend_migrator_unittest.cc b/components/sync/driver/backend_migrator_unittest.cc
index 9ac09ae173e7314c74d30d0fb4e07a139b31d598..f78d0dc82c16cd67f4ec284c22600dfe54785b47 100644
--- a/components/sync/driver/backend_migrator_unittest.cc
+++ b/components/sync/driver/backend_migrator_unittest.cc
@@ -6,6 +6,7 @@
#include <memory>
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/tracked_objects.h"
@@ -39,9 +40,9 @@ class SyncBackendMigratorTest : public testing::Test {
preferred_types_.Put(PREFERENCES);
preferred_types_.Put(AUTOFILL);
- migrator_.reset(new BackendMigrator("Profile0",
- test_user_share_.user_share(),
- service(), manager(), base::Closure()));
+ migrator_ = base::MakeUnique<BackendMigrator>(
+ "Profile0", test_user_share_.user_share(), service(), manager(),
+ base::Closure());
SetUnsyncedTypes(ModelTypeSet());
}

Powered by Google App Engine
This is Rietveld 408576698