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

Unified Diff: components/proximity_auth/throttled_bluetooth_connection_finder_unittest.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/throttled_bluetooth_connection_finder_unittest.cc
diff --git a/components/proximity_auth/throttled_bluetooth_connection_finder_unittest.cc b/components/proximity_auth/throttled_bluetooth_connection_finder_unittest.cc
index c4753f8090886922e9ecf183b9ddc50dc5970e21..539ebd9071a90bcab70d086b9a286b9d4ea7d9bd 100644
--- a/components/proximity_auth/throttled_bluetooth_connection_finder_unittest.cc
+++ b/components/proximity_auth/throttled_bluetooth_connection_finder_unittest.cc
@@ -58,8 +58,7 @@ class FakeBluetoothConnectionFinder : public BluetoothConnectionFinder {
~FakeBluetoothConnectionFinder() override {}
void Find(const ConnectionCallback& connection_callback) override {
- connection_callback.Run(
- base::WrapUnique(new FakeConnection(RemoteDevice())));
+ connection_callback.Run(base::MakeUnique<FakeConnection>(RemoteDevice()));
}
private:
« no previous file with comments | « components/proximity_auth/remote_device_life_cycle_impl.cc ('k') | components/proximity_auth/unlock_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698