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

Unified Diff: components/proximity_auth/bluetooth_connection_finder.cc

Issue 1912433002: Convert //components/proximity_auth from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 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/bluetooth_connection_finder.cc
diff --git a/components/proximity_auth/bluetooth_connection_finder.cc b/components/proximity_auth/bluetooth_connection_finder.cc
index b92d7675fc3823b134b0b3c2e5c6c85e8d9687bb..a44104951ecc4a7369d7b3debfd8c078061aa237 100644
--- a/components/proximity_auth/bluetooth_connection_finder.cc
+++ b/components/proximity_auth/bluetooth_connection_finder.cc
@@ -51,8 +51,9 @@ void BluetoothConnectionFinder::Find(
weak_ptr_factory_.GetWeakPtr()));
}
-scoped_ptr<Connection> BluetoothConnectionFinder::CreateConnection() {
- return scoped_ptr<Connection>(new BluetoothConnection(remote_device_, uuid_));
+std::unique_ptr<Connection> BluetoothConnectionFinder::CreateConnection() {
+ return std::unique_ptr<Connection>(
+ new BluetoothConnection(remote_device_, uuid_));
}
void BluetoothConnectionFinder::SeekDeviceByAddress(

Powered by Google App Engine
This is Rietveld 408576698