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

Unified Diff: device/bluetooth/test/mock_bluetooth_adapter.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/test/mock_bluetooth_adapter.cc
diff --git a/device/bluetooth/test/mock_bluetooth_adapter.cc b/device/bluetooth/test/mock_bluetooth_adapter.cc
index f2d7b2a8172af9327bc703dd02d726a76c29f204..697273227cd40b69ac9837bf739932ecd790ff3e 100644
--- a/device/bluetooth/test/mock_bluetooth_adapter.cc
+++ b/device/bluetooth/test/mock_bluetooth_adapter.cc
@@ -4,6 +4,8 @@
#include "device/bluetooth/test/mock_bluetooth_adapter.h"
+#include <utility>
+
#include "build/build_config.h"
#include "device/bluetooth/test/mock_bluetooth_advertisement.h"
@@ -60,7 +62,7 @@ void MockBluetoothAdapter::StartDiscoverySessionWithFilter(
void MockBluetoothAdapter::AddMockDevice(
scoped_ptr<MockBluetoothDevice> mock_device) {
- mock_devices_.push_back(mock_device.Pass());
+ mock_devices_.push_back(std::move(mock_device));
}
BluetoothAdapter::ConstDeviceList MockBluetoothAdapter::GetConstMockDevices() {
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_profile_service_provider.cc ('k') | device/bluetooth/test/mock_bluetooth_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698