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

Unified Diff: components/sync/driver/shared_change_processor_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/shared_change_processor_unittest.cc
diff --git a/components/sync/driver/shared_change_processor_unittest.cc b/components/sync/driver/shared_change_processor_unittest.cc
index 2432e1a54d344f4152a95e57f61246cd6c9f33b1..76e8f0aed2e3cf4e54905c84827cf63c33f17089 100644
--- a/components/sync/driver/shared_change_processor_unittest.cc
+++ b/components/sync/driver/shared_change_processor_unittest.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/compiler_specific.h"
+#include "base/memory/ptr_util.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
#include "components/sync/base/model_type.h"
@@ -160,7 +161,7 @@ class SyncSharedChangeProcessorTest : public testing::Test,
void SetUpDBSyncableService() {
DCHECK(backend_thread_.task_runner()->BelongsToCurrentThread());
DCHECK(!db_syncable_service_.get());
- db_syncable_service_.reset(new FakeSyncableService());
+ db_syncable_service_ = base::MakeUnique<FakeSyncableService>();
}
// Used by TearDown().
« no previous file with comments | « components/sync/driver/model_type_controller_unittest.cc ('k') | components/sync/driver/startup_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698