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

Unified Diff: components/proximity_auth/cryptauth/sync_scheduler_impl.cc

Issue 2250023005: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: components/proximity_auth/cryptauth/sync_scheduler_impl.cc
diff --git a/components/proximity_auth/cryptauth/sync_scheduler_impl.cc b/components/proximity_auth/cryptauth/sync_scheduler_impl.cc
index 8364238c73586a7b38e47dbc869731c84225ac6e..781d6abf259f215ac10894b0fb53a2eeaf402074 100644
--- a/components/proximity_auth/cryptauth/sync_scheduler_impl.cc
+++ b/components/proximity_auth/cryptauth/sync_scheduler_impl.cc
@@ -113,13 +113,13 @@ void SyncSchedulerImpl::OnTimerFired() {
}
delegate_->OnSyncRequested(
- base::WrapUnique(new SyncRequest(weak_ptr_factory_.GetWeakPtr())));
+ base::MakeUnique<SyncRequest>(weak_ptr_factory_.GetWeakPtr()));
}
std::unique_ptr<base::Timer> SyncSchedulerImpl::CreateTimer() {
bool retain_user_task = false;
bool is_repeating = false;
- return base::WrapUnique(new base::Timer(retain_user_task, is_repeating));
+ return base::MakeUnique<base::Timer>(retain_user_task, is_repeating);
}
void SyncSchedulerImpl::ScheduleNextSync(const base::TimeDelta& sync_delta) {

Powered by Google App Engine
This is Rietveld 408576698