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

Unified Diff: components/sync/driver/glue/sync_backend_host_core.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/glue/sync_backend_host_core.cc
diff --git a/components/sync/driver/glue/sync_backend_host_core.cc b/components/sync/driver/glue/sync_backend_host_core.cc
index 8c3e250ad7e4362dd6f01350c667394b536c8f29..48f0afa347c2bb21eae10990cb76d2b98c993dc7 100644
--- a/components/sync/driver/glue/sync_backend_host_core.cc
+++ b/components/sync/driver/glue/sync_backend_host_core.cc
@@ -655,7 +655,7 @@ void SyncBackendHostCore::StartSavingChanges() {
return;
DCHECK(sync_loop_->task_runner()->BelongsToCurrentThread());
DCHECK(!save_changes_timer_.get());
- save_changes_timer_.reset(new base::RepeatingTimer());
+ save_changes_timer_ = base::MakeUnique<base::RepeatingTimer>();
save_changes_timer_->Start(
FROM_HERE, base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds),
this, &SyncBackendHostCore::SaveChanges);
« no previous file with comments | « components/sync/driver/generic_change_processor_unittest.cc ('k') | components/sync/driver/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698