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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_characteristic_bluez.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
« no previous file with comments | « device/bluetooth/bluetooth_gatt_bluez_unittest.cc ('k') | device/bluetooth/bluetooth_socket_bluez.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_remote_gatt_characteristic_bluez.cc
diff --git a/device/bluetooth/bluetooth_remote_gatt_characteristic_bluez.cc b/device/bluetooth/bluetooth_remote_gatt_characteristic_bluez.cc
index e76c57e48841455ecfa27b3e63377b0ad3dca707..07806f701d2619ee007ea08025c4a6a0736af4c4 100644
--- a/device/bluetooth/bluetooth_remote_gatt_characteristic_bluez.cc
+++ b/device/bluetooth/bluetooth_remote_gatt_characteristic_bluez.cc
@@ -5,6 +5,7 @@
#include "device/bluetooth/bluetooth_remote_gatt_characteristic_bluez.h"
#include <limits>
+#include <utility>
#include "base/logging.h"
#include "base/strings/stringprintf.h"
@@ -251,7 +252,7 @@ void BluetoothRemoteGattCharacteristicBlueZ::StartNotifySession(
new BluetoothGattNotifySessionBlueZ(
service_->GetAdapter(), service_->GetDevice()->GetAddress(),
service_->GetIdentifier(), GetIdentifier(), object_path_));
- callback.Run(session.Pass());
+ callback.Run(std::move(session));
return;
}
@@ -417,7 +418,7 @@ void BluetoothRemoteGattCharacteristicBlueZ::OnStartNotifySuccess(
new BluetoothGattNotifySessionBlueZ(
service_->GetAdapter(), service_->GetDevice()->GetAddress(),
service_->GetIdentifier(), GetIdentifier(), object_path_));
- callback.Run(session.Pass());
+ callback.Run(std::move(session));
ProcessStartNotifyQueue();
}
« no previous file with comments | « device/bluetooth/bluetooth_gatt_bluez_unittest.cc ('k') | device/bluetooth/bluetooth_socket_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698