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

Unified Diff: components/sync/engine_impl/directory_update_handler_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/engine_impl/directory_update_handler_unittest.cc
diff --git a/components/sync/engine_impl/directory_update_handler_unittest.cc b/components/sync/engine_impl/directory_update_handler_unittest.cc
index 4dde95ac1e7103825d51431afbdba544c54f02ad..f400278b21cac87a6a983f2c0bdf92b4614b63ba 100644
--- a/components/sync/engine_impl/directory_update_handler_unittest.cc
+++ b/components/sync/engine_impl/directory_update_handler_unittest.cc
@@ -477,7 +477,7 @@ class DirectoryUpdateHandlerApplyUpdateTest : public ::testing::Test {
void SetUp() override {
dir_maker_.SetUp();
- entry_factory_.reset(new TestEntryFactory(directory()));
+ entry_factory_ = base::MakeUnique<TestEntryFactory>(directory());
update_handler_map_.insert(std::make_pair(
BOOKMARKS,
« no previous file with comments | « components/sync/engine_impl/directory_update_handler.cc ('k') | components/sync/engine_impl/model_type_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698