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

Unified Diff: device/bluetooth/bluetooth_socket_net.cc

Issue 1544323002: Convert Pass()→std::move() in //device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: device/bluetooth/bluetooth_socket_net.cc
diff --git a/device/bluetooth/bluetooth_socket_net.cc b/device/bluetooth/bluetooth_socket_net.cc
index b042863b1ff7dd624f1982e02331c07ccb0fec05..de113f9c42cbc1c2d1552dc07ce74418914945ae 100644
--- a/device/bluetooth/bluetooth_socket_net.cc
+++ b/device/bluetooth/bluetooth_socket_net.cc
@@ -6,6 +6,7 @@
#include <queue>
#include <string>
+#include <utility>
#include "base/location.h"
#include "base/logging.h"
@@ -120,7 +121,7 @@ void BluetoothSocketNet::ResetTCPSocket() {
}
void BluetoothSocketNet::SetTCPSocket(scoped_ptr<net::TCPSocket> tcp_socket) {
- tcp_socket_ = tcp_socket.Pass();
+ tcp_socket_ = std::move(tcp_socket);
}
void BluetoothSocketNet::PostSuccess(const base::Closure& callback) {
« no previous file with comments | « device/bluetooth/bluetooth_socket_bluez.cc ('k') | device/bluetooth/dbus/bluetooth_agent_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698