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

Unified Diff: components/sync/engine_impl/directory_update_handler_unittest.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/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 42080055f0cf62d64e194da93799cb92a937a305..d79fd90afc8f94a829aa5e768de0b87f638fd4d3 100644
--- a/components/sync/engine_impl/directory_update_handler_unittest.cc
+++ b/components/sync/engine_impl/directory_update_handler_unittest.cc
@@ -484,15 +484,15 @@ class DirectoryUpdateHandlerApplyUpdateTest : public ::testing::Test {
update_handler_map_.insert(std::make_pair(
BOOKMARKS,
- base::WrapUnique(new DirectoryUpdateHandler(
- directory(), BOOKMARKS, ui_worker_, &bookmarks_emitter_))));
+ base::MakeUnique<DirectoryUpdateHandler>(
+ directory(), BOOKMARKS, ui_worker_, &bookmarks_emitter_)));
update_handler_map_.insert(std::make_pair(
PASSWORDS,
- base::WrapUnique(new DirectoryUpdateHandler(
- directory(), PASSWORDS, password_worker_, &passwords_emitter_))));
+ base::MakeUnique<DirectoryUpdateHandler>(
+ directory(), PASSWORDS, password_worker_, &passwords_emitter_)));
update_handler_map_.insert(std::make_pair(
- ARTICLES, base::WrapUnique(new DirectoryUpdateHandler(
- directory(), ARTICLES, ui_worker_, &articles_emitter_))));
+ ARTICLES, base::MakeUnique<DirectoryUpdateHandler>(
+ directory(), ARTICLES, ui_worker_, &articles_emitter_)));
}
void TearDown() override { dir_maker_.TearDown(); }
« no previous file with comments | « components/sync/engine_impl/cycle/nudge_tracker.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