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_factory.h" | 5 #include "device/bluetooth/bluetooth_adapter_factory.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "build/build_config.h" |
13 #include "device/bluetooth/bluetooth_adapter.h" | 14 #include "device/bluetooth/bluetooth_adapter.h" |
14 | 15 |
15 #if defined(OS_MACOSX) | 16 #if defined(OS_MACOSX) |
16 #include "base/mac/mac_util.h" | 17 #include "base/mac/mac_util.h" |
17 #endif | 18 #endif |
18 | 19 |
19 namespace device { | 20 namespace device { |
20 | 21 |
21 namespace { | 22 namespace { |
22 | 23 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 scoped_refptr<BluetoothAdapter> adapter) { | 115 scoped_refptr<BluetoothAdapter> adapter) { |
115 default_adapter.Get() = adapter->GetWeakPtrForTesting(); | 116 default_adapter.Get() = adapter->GetWeakPtrForTesting(); |
116 } | 117 } |
117 | 118 |
118 // static | 119 // static |
119 bool BluetoothAdapterFactory::HasSharedInstanceForTesting() { | 120 bool BluetoothAdapterFactory::HasSharedInstanceForTesting() { |
120 return default_adapter.Get(); | 121 return default_adapter.Get(); |
121 } | 122 } |
122 | 123 |
123 } // namespace device | 124 } // namespace device |
OLD | NEW |