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

Side by Side Diff: device/bluetooth/bluetooth_adapter.cc

Issue 11075006: Moved bluetooth adapter files to device/bluetooth/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: renamed 'bluetooth' target to 'device_bluetooth'. Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" 5 #include "device/bluetooth/bluetooth_adapter.h"
6 6
7 #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h" 7 #include "device/bluetooth/bluetooth_device.h"
8 8
9 namespace chromeos { 9 namespace device {
10 10
11 BluetoothAdapter::~BluetoothAdapter() { 11 BluetoothAdapter::~BluetoothAdapter() {
12 } 12 }
13 13
14 const std::string& BluetoothAdapter::address() const { 14 const std::string& BluetoothAdapter::address() const {
15 return address_; 15 return address_;
16 } 16 }
17 17
18 const std::string& BluetoothAdapter::name() const { 18 const std::string& BluetoothAdapter::name() const {
19 return name_; 19 return name_;
20 } 20 }
21 21
22 BluetoothAdapter::DeviceList BluetoothAdapter::GetDevices() { 22 BluetoothAdapter::DeviceList BluetoothAdapter::GetDevices() {
23 ConstDeviceList const_devices = 23 ConstDeviceList const_devices =
24 const_cast<const BluetoothAdapter *>(this)->GetDevices(); 24 const_cast<const BluetoothAdapter *>(this)->GetDevices();
25 25
26 DeviceList devices; 26 DeviceList devices;
27 for (ConstDeviceList::const_iterator i = const_devices.begin(); 27 for (ConstDeviceList::const_iterator i = const_devices.begin();
28 i != const_devices.end(); ++i) 28 i != const_devices.end(); ++i)
29 devices.push_back(const_cast<BluetoothDevice *>(*i)); 29 devices.push_back(const_cast<BluetoothDevice *>(*i));
30 30
31 return devices; 31 return devices;
32 } 32 }
33 33
34 } // namespace chromeos 34 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698