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: { |