OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/bluetooth_discovery_filter.h" | 5 #include "device/bluetooth/bluetooth_discovery_filter.h" |
6 | 6 |
| 7 #include <algorithm> |
7 #include <memory> | 8 #include <memory> |
8 | 9 |
9 #include "device/bluetooth/bluetooth_common.h" | 10 #include "device/bluetooth/bluetooth_common.h" |
10 | 11 |
11 namespace device { | 12 namespace device { |
12 | 13 |
13 BluetoothDiscoveryFilter::BluetoothDiscoveryFilter( | 14 BluetoothDiscoveryFilter::BluetoothDiscoveryFilter( |
14 BluetoothTransport transport) { | 15 BluetoothTransport transport) { |
15 SetTransport(transport); | 16 SetTransport(transport); |
16 } | 17 } |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 174 |
174 return true; | 175 return true; |
175 } | 176 } |
176 | 177 |
177 bool BluetoothDiscoveryFilter::IsDefault() const { | 178 bool BluetoothDiscoveryFilter::IsDefault() const { |
178 return !(rssi_.get() || pathloss_.get() || uuids_.size() || | 179 return !(rssi_.get() || pathloss_.get() || uuids_.size() || |
179 transport_ != BLUETOOTH_TRANSPORT_DUAL); | 180 transport_ != BLUETOOTH_TRANSPORT_DUAL); |
180 } | 181 } |
181 | 182 |
182 } // namespace device | 183 } // namespace device |
OLD | NEW |