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

Unified Diff: components/sync_bookmarks/bookmark_data_type_controller_unittest.cc

Issue 2257793002: 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
« no previous file with comments | « components/suggestions/image_encoder_ios.mm ('k') | components/sync_sessions/favicon_cache_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_bookmarks/bookmark_data_type_controller_unittest.cc
diff --git a/components/sync_bookmarks/bookmark_data_type_controller_unittest.cc b/components/sync_bookmarks/bookmark_data_type_controller_unittest.cc
index 8a19614129ec9ba6e8c6c6ede94248bd038bcd1a..32efcbe0998a2ad06256a54d5fec07b48b7f2f84 100644
--- a/components/sync_bookmarks/bookmark_data_type_controller_unittest.cc
+++ b/components/sync_bookmarks/bookmark_data_type_controller_unittest.cc
@@ -89,8 +89,8 @@ class SyncBookmarkDataTypeControllerTest : public testing::Test,
};
void CreateBookmarkModel(BookmarkLoadPolicy bookmark_load_policy) {
- bookmark_model_.reset(new BookmarkModel(
- base::WrapUnique(new bookmarks::TestBookmarkClient())));
+ bookmark_model_.reset(
+ new BookmarkModel(base::MakeUnique<bookmarks::TestBookmarkClient>()));
if (bookmark_load_policy == LOAD_MODEL) {
TestingPrefServiceSimple prefs;
bookmark_model_->Load(&prefs, base::FilePath(),
« no previous file with comments | « components/suggestions/image_encoder_ios.mm ('k') | components/sync_sessions/favicon_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698