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

Unified Diff: device/bluetooth/dbus/bluetooth_agent_service_provider.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/dbus/bluetooth_agent_service_provider.cc
diff --git a/device/bluetooth/dbus/bluetooth_agent_service_provider.cc b/device/bluetooth/dbus/bluetooth_agent_service_provider.cc
index 0592356368533d2563faff3d920ae6c4c0a152a4..1bafcb0d9244ee3f06887f26d896cd22b72f81e9 100644
--- a/device/bluetooth/dbus/bluetooth_agent_service_provider.cc
+++ b/device/bluetooth/dbus/bluetooth_agent_service_provider.cc
@@ -4,6 +4,8 @@
#include "device/bluetooth/dbus/bluetooth_agent_service_provider.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/logging.h"
#include "base/macros.h"
@@ -323,7 +325,7 @@ class BluetoothAgentServiceProviderImpl : public BluetoothAgentServiceProvider {
dbus::Response::FromMethodCall(method_call));
dbus::MessageWriter writer(response.get());
writer.AppendString(pincode);
- response_sender.Run(response.Pass());
+ response_sender.Run(std::move(response));
break;
}
case Delegate::REJECTED: {
@@ -354,7 +356,7 @@ class BluetoothAgentServiceProviderImpl : public BluetoothAgentServiceProvider {
dbus::Response::FromMethodCall(method_call));
dbus::MessageWriter writer(response.get());
writer.AppendUint32(passkey);
- response_sender.Run(response.Pass());
+ response_sender.Run(std::move(response));
break;
}
case Delegate::REJECTED: {
« no previous file with comments | « device/bluetooth/bluetooth_socket_net.cc ('k') | device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698