Create a new-installs-only uniformity trial.
[chromium-blink-merge.git] / device / bluetooth / bluetooth_adapter.cc
blobb36cd0b25612359b6431bc0770910dc1ee5ad5d0
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
3 // found in the LICENSE file.
5 #include "device/bluetooth/bluetooth_adapter.h"
7 #include "device/bluetooth/bluetooth_device.h"
9 namespace device {
11 BluetoothAdapter::~BluetoothAdapter() {
14 const std::string& BluetoothAdapter::address() const {
15 return address_;
18 const std::string& BluetoothAdapter::name() const {
19 return name_;
22 BluetoothAdapter::DeviceList BluetoothAdapter::GetDevices() {
23 ConstDeviceList const_devices =
24 const_cast<const BluetoothAdapter *>(this)->GetDevices();
26 DeviceList devices;
27 for (ConstDeviceList::const_iterator i = const_devices.begin();
28 i != const_devices.end(); ++i)
29 devices.push_back(const_cast<BluetoothDevice *>(*i));
31 return devices;
34 } // namespace device