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

Unified Diff: device/bluetooth/bluetooth_adapter_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_adapter.cc ('k') | device/bluetooth/bluetooth_adapter_profile_bluez.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_bluez.cc
diff --git a/device/bluetooth/bluetooth_adapter_bluez.cc b/device/bluetooth/bluetooth_adapter_bluez.cc
index 2e059f1d70388832e362655b56df0fef86dff30d..0997dd98cf319ad8bfec7d764620fdc448c74db2 100644
--- a/device/bluetooth/bluetooth_adapter_bluez.cc
+++ b/device/bluetooth/bluetooth_adapter_bluez.cc
@@ -5,6 +5,7 @@
#include "device/bluetooth/bluetooth_adapter_bluez.h"
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/location.h"
@@ -345,7 +346,7 @@ void BluetoothAdapterBlueZ::RegisterAdvertisement(
const CreateAdvertisementCallback& callback,
const CreateAdvertisementErrorCallback& error_callback) {
scoped_refptr<BluetoothAdvertisementBlueZ> advertisement(
- new BluetoothAdvertisementBlueZ(advertisement_data.Pass(), this));
+ new BluetoothAdvertisementBlueZ(std::move(advertisement_data), this));
advertisement->Register(base::Bind(callback, advertisement), error_callback);
}
@@ -1198,7 +1199,7 @@ void BluetoothAdapterBlueZ::AddDiscoverySession(
BluetoothDiscoveryFilter::Transport::TRANSPORT_DUAL));
df->CopyFrom(*discovery_filter);
SetDiscoveryFilter(
- df.Pass(),
+ std::move(df),
base::Bind(&BluetoothAdapterBlueZ::OnPreSetDiscoveryFilter,
weak_ptr_factory_.GetWeakPtr(), callback, error_callback),
base::Bind(&BluetoothAdapterBlueZ::OnPreSetDiscoveryFilterError,
« no previous file with comments | « device/bluetooth/bluetooth_adapter.cc ('k') | device/bluetooth/bluetooth_adapter_profile_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698