OLD | NEW |
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 "device/bluetooth/bluetooth_adapter.h" | 5 #include "device/bluetooth/bluetooth_adapter.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "build/build_config.h" |
10 #include "device/bluetooth/bluetooth_device.h" | 11 #include "device/bluetooth/bluetooth_device.h" |
11 #include "device/bluetooth/bluetooth_discovery_session.h" | 12 #include "device/bluetooth/bluetooth_discovery_session.h" |
12 #include "device/bluetooth/bluetooth_discovery_session_outcome.h" | 13 #include "device/bluetooth/bluetooth_discovery_session_outcome.h" |
13 | 14 |
14 namespace device { | 15 namespace device { |
15 | 16 |
16 BluetoothAdapter::ServiceOptions::ServiceOptions() { | 17 BluetoothAdapter::ServiceOptions::ServiceOptions() { |
17 } | 18 } |
18 BluetoothAdapter::ServiceOptions::~ServiceOptions() { | 19 BluetoothAdapter::ServiceOptions::~ServiceOptions() { |
19 } | 20 } |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 252 |
252 // static | 253 // static |
253 void BluetoothAdapter::RecordBluetoothDiscoverySessionStopOutcome( | 254 void BluetoothAdapter::RecordBluetoothDiscoverySessionStopOutcome( |
254 UMABluetoothDiscoverySessionOutcome outcome) { | 255 UMABluetoothDiscoverySessionOutcome outcome) { |
255 UMA_HISTOGRAM_ENUMERATION( | 256 UMA_HISTOGRAM_ENUMERATION( |
256 "Bluetooth.DiscoverySession.Stop.Outcome", static_cast<int>(outcome), | 257 "Bluetooth.DiscoverySession.Stop.Outcome", static_cast<int>(outcome), |
257 static_cast<int>(UMABluetoothDiscoverySessionOutcome::COUNT)); | 258 static_cast<int>(UMABluetoothDiscoverySessionOutcome::COUNT)); |
258 } | 259 } |
259 | 260 |
260 } // namespace device | 261 } // namespace device |
OLD | NEW |