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

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_profile_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 4 years, 12 months 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h" 5 #include "device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h"
6 6
7 #include <utility>
8
7 #include "device/bluetooth/dbus/bluez_dbus_manager.h" 9 #include "device/bluetooth/dbus/bluez_dbus_manager.h"
8 #include "device/bluetooth/dbus/fake_bluetooth_profile_manager_client.h" 10 #include "device/bluetooth/dbus/fake_bluetooth_profile_manager_client.h"
9 11
10 namespace bluez { 12 namespace bluez {
11 13
12 FakeBluetoothProfileServiceProvider::FakeBluetoothProfileServiceProvider( 14 FakeBluetoothProfileServiceProvider::FakeBluetoothProfileServiceProvider(
13 const dbus::ObjectPath& object_path, 15 const dbus::ObjectPath& object_path,
14 Delegate* delegate) 16 Delegate* delegate)
15 : object_path_(object_path), delegate_(delegate) { 17 : object_path_(object_path), delegate_(delegate) {
16 VLOG(1) << "Creating Bluetooth Profile: " << object_path_.value(); 18 VLOG(1) << "Creating Bluetooth Profile: " << object_path_.value();
(...skipping 18 matching lines...) Expand all
35 delegate_->Released(); 37 delegate_->Released();
36 } 38 }
37 39
38 void FakeBluetoothProfileServiceProvider::NewConnection( 40 void FakeBluetoothProfileServiceProvider::NewConnection(
39 const dbus::ObjectPath& device_path, 41 const dbus::ObjectPath& device_path,
40 scoped_ptr<dbus::FileDescriptor> fd, 42 scoped_ptr<dbus::FileDescriptor> fd,
41 const Delegate::Options& options, 43 const Delegate::Options& options,
42 const Delegate::ConfirmationCallback& callback) { 44 const Delegate::ConfirmationCallback& callback) {
43 VLOG(1) << object_path_.value() << ": NewConnection for " 45 VLOG(1) << object_path_.value() << ": NewConnection for "
44 << device_path.value(); 46 << device_path.value();
45 delegate_->NewConnection(device_path, fd.Pass(), options, callback); 47 delegate_->NewConnection(device_path, std::move(fd), options, callback);
46 } 48 }
47 49
48 void FakeBluetoothProfileServiceProvider::RequestDisconnection( 50 void FakeBluetoothProfileServiceProvider::RequestDisconnection(
49 const dbus::ObjectPath& device_path, 51 const dbus::ObjectPath& device_path,
50 const Delegate::ConfirmationCallback& callback) { 52 const Delegate::ConfirmationCallback& callback) {
51 VLOG(1) << object_path_.value() << ": RequestDisconnection for " 53 VLOG(1) << object_path_.value() << ": RequestDisconnection for "
52 << device_path.value(); 54 << device_path.value();
53 delegate_->RequestDisconnection(device_path, callback); 55 delegate_->RequestDisconnection(device_path, callback);
54 } 56 }
55 57
56 void FakeBluetoothProfileServiceProvider::Cancel() { 58 void FakeBluetoothProfileServiceProvider::Cancel() {
57 VLOG(1) << object_path_.value() << ": Cancel"; 59 VLOG(1) << object_path_.value() << ": Cancel";
58 delegate_->Cancel(); 60 delegate_->Cancel();
59 } 61 }
60 62
61 } // namespace bluez 63 } // namespace bluez
OLDNEW
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_device_client.cc ('k') | device/bluetooth/test/mock_bluetooth_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698