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

Unified Diff: components/proximity_auth/throttled_bluetooth_connection_finder.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 5 years 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 252a47f9ec03f37b4ad9994617ccfd0664ed55be..8218a2b928cc8719758621378dd0afc2281e2a16 100644
--- a/components/proximity_auth/throttled_bluetooth_connection_finder.cc
+++ b/components/proximity_auth/throttled_bluetooth_connection_finder.cc
@@ -4,6 +4,8 @@
#include "components/proximity_auth/throttled_bluetooth_connection_finder.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/task_runner.h"
@@ -17,11 +19,10 @@ ThrottledBluetoothConnectionFinder::ThrottledBluetoothConnectionFinder(
scoped_ptr<BluetoothConnectionFinder> connection_finder,
scoped_refptr<base::TaskRunner> task_runner,
BluetoothThrottler* throttler)
- : connection_finder_(connection_finder.Pass()),
+ : connection_finder_(std::move(connection_finder)),
task_runner_(task_runner),
throttler_(throttler),
- weak_ptr_factory_(this) {
-}
+ weak_ptr_factory_(this) {}
ThrottledBluetoothConnectionFinder::~ThrottledBluetoothConnectionFinder() {
}
@@ -49,7 +50,7 @@ void ThrottledBluetoothConnectionFinder::OnConnection(
const ConnectionCallback& connection_callback,
scoped_ptr<Connection> connection) {
throttler_->OnConnection(connection.get());
- connection_callback.Run(connection.Pass());
+ connection_callback.Run(std::move(connection));
}
} // namespace proximity_auth

Powered by Google App Engine
This is Rietveld 408576698