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

Unified Diff: components/proximity_auth/throttled_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/throttled_bluetooth_connection_finder.cc
diff --git a/components/proximity_auth/throttled_bluetooth_connection_finder.cc b/components/proximity_auth/throttled_bluetooth_connection_finder.cc
index 8218a2b928cc8719758621378dd0afc2281e2a16..975b85e2ac542a03550141775ee6374b411d44f3 100644
--- a/components/proximity_auth/throttled_bluetooth_connection_finder.cc
+++ b/components/proximity_auth/throttled_bluetooth_connection_finder.cc
@@ -16,7 +16,7 @@
namespace proximity_auth {
ThrottledBluetoothConnectionFinder::ThrottledBluetoothConnectionFinder(
- scoped_ptr<BluetoothConnectionFinder> connection_finder,
+ std::unique_ptr<BluetoothConnectionFinder> connection_finder,
scoped_refptr<base::TaskRunner> task_runner,
BluetoothThrottler* throttler)
: connection_finder_(std::move(connection_finder)),
@@ -48,7 +48,7 @@ void ThrottledBluetoothConnectionFinder::Find(
void ThrottledBluetoothConnectionFinder::OnConnection(
const ConnectionCallback& connection_callback,
- scoped_ptr<Connection> connection) {
+ std::unique_ptr<Connection> connection) {
throttler_->OnConnection(connection.get());
connection_callback.Run(std::move(connection));
}

Powered by Google App Engine
This is Rietveld 408576698