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

Unified Diff: components/sync/engine_impl/cycle/sync_cycle.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/cycle/sync_cycle.cc
diff --git a/components/sync/engine_impl/cycle/sync_cycle.cc b/components/sync/engine_impl/cycle/sync_cycle.cc
index d56f9dba50333a33c107007e4da00a5c29bcc616..a94c0d5a7872a6c7a5d2af66d5e7c907a8c0aa09 100644
--- a/components/sync/engine_impl/cycle/sync_cycle.cc
+++ b/components/sync/engine_impl/cycle/sync_cycle.cc
@@ -8,6 +8,7 @@
#include <iterator>
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "components/sync/syncable/directory.h"
namespace syncer {
@@ -19,7 +20,7 @@ SyncCycle* SyncCycle::Build(SyncCycleContext* context, Delegate* delegate) {
SyncCycle::SyncCycle(SyncCycleContext* context, Delegate* delegate)
: context_(context), delegate_(delegate) {
- status_controller_.reset(new StatusController());
+ status_controller_ = base::MakeUnique<StatusController>();
}
SyncCycle::~SyncCycle() {}

Powered by Google App Engine
This is Rietveld 408576698