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

Unified Diff: components/proximity_auth/unlock_manager.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/unlock_manager.cc
diff --git a/components/proximity_auth/unlock_manager.cc b/components/proximity_auth/unlock_manager.cc
index 91172086055c1f28eb7932710e123e838b6bb7d9..20999086a664d5725cda9e3adec664846b609272 100644
--- a/components/proximity_auth/unlock_manager.cc
+++ b/components/proximity_auth/unlock_manager.cc
@@ -321,8 +321,8 @@ void UnlockManager::OnAuthAttempted(
std::unique_ptr<ProximityMonitor> UnlockManager::CreateProximityMonitor(
const RemoteDevice& remote_device) {
- return base::WrapUnique(new ProximityMonitorImpl(
- remote_device, base::WrapUnique(new base::DefaultTickClock())));
+ return base::MakeUnique<ProximityMonitorImpl>(
+ remote_device, base::WrapUnique(new base::DefaultTickClock()));
}
void UnlockManager::SendSignInChallenge() {

Powered by Google App Engine
This is Rietveld 408576698