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

Unified Diff: components/browser_sync/profile_sync_service_startup_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/browser_sync/profile_sync_service_startup_unittest.cc
diff --git a/components/browser_sync/profile_sync_service_startup_unittest.cc b/components/browser_sync/profile_sync_service_startup_unittest.cc
index f0ef72e01337cc2617ce8786c8e4af0eef7e605d..45cbaa37032e069cac98da4ba6f348d2cbcfd149 100644
--- a/components/browser_sync/profile_sync_service_startup_unittest.cc
+++ b/components/browser_sync/profile_sync_service_startup_unittest.cc
@@ -5,6 +5,7 @@
#include "components/browser_sync/profile_sync_service.h"
#include "base/files/file_util.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_task_runner_handle.h"
#include "components/browser_sync/profile_sync_test_util.h"
@@ -90,7 +91,8 @@ class ProfileSyncServiceStartupTest : public testing::Test {
profile_sync_service_bundle_.CreateBasicInitParams(start_behavior,
builder.Build());
- sync_service_.reset(new ProfileSyncService(std::move(init_params)));
+ sync_service_ =
+ base::MakeUnique<ProfileSyncService>(std::move(init_params));
sync_service_->RegisterDataTypeController(
base::MakeUnique<syncer::FakeDataTypeController>(syncer::BOOKMARKS));
sync_service_->AddObserver(&observer_);

Powered by Google App Engine
This is Rietveld 408576698