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

Unified Diff: components/sync/driver/data_type_manager_impl_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/data_type_manager_impl_unittest.cc
diff --git a/components/sync/driver/data_type_manager_impl_unittest.cc b/components/sync/driver/data_type_manager_impl_unittest.cc
index b76ff19e53597852eb4c927d86f8fc5a34ebf484..ed25e0d0a4102cb07fe44fbf3caedef5e1f027d2 100644
--- a/components/sync/driver/data_type_manager_impl_unittest.cc
+++ b/components/sync/driver/data_type_manager_impl_unittest.cc
@@ -262,9 +262,9 @@ class SyncDataTypeManagerImplTest : public testing::Test {
protected:
void SetUp() override {
- dtm_.reset(new TestDataTypeManager(WeakHandle<DataTypeDebugInfoListener>(),
- &configurer_, &controllers_,
- &encryption_handler_, &observer_));
+ dtm_ = base::MakeUnique<TestDataTypeManager>(
+ WeakHandle<DataTypeDebugInfoListener>(), &configurer_, &controllers_,
+ &encryption_handler_, &observer_);
}
void SetConfigureStartExpectation() { observer_.ExpectStart(); }
« no previous file with comments | « components/sync/driver/backend_migrator_unittest.cc ('k') | components/sync/driver/frontend_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698