OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #if !defined(OS_CHROMEOS) | 5 #if !defined(OS_CHROMEOS) |
6 | 6 |
7 #include "components/proximity_auth/bluetooth_util.h" | 7 #include "components/proximity_auth/bluetooth_util.h" |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "build/build_config.h" |
10 | 11 |
11 namespace proximity_auth { | 12 namespace proximity_auth { |
12 namespace bluetooth_util { | 13 namespace bluetooth_util { |
13 namespace { | 14 namespace { |
14 const char kApiUnavailable[] = "This API is not implemented on this platform."; | 15 const char kApiUnavailable[] = "This API is not implemented on this platform."; |
15 } // namespace | 16 } // namespace |
16 | 17 |
17 void SeekDeviceByAddress(const std::string& device_address, | 18 void SeekDeviceByAddress(const std::string& device_address, |
18 const base::Closure& callback, | 19 const base::Closure& callback, |
19 const ErrorCallback& error_callback, | 20 const ErrorCallback& error_callback, |
20 base::TaskRunner* task_runner) { | 21 base::TaskRunner* task_runner) { |
21 error_callback.Run(kApiUnavailable); | 22 error_callback.Run(kApiUnavailable); |
22 } | 23 } |
23 | 24 |
24 } // namespace bluetooth_util | 25 } // namespace bluetooth_util |
25 } // namespace proximity_auth | 26 } // namespace proximity_auth |
26 | 27 |
27 #endif // !defined(OS_CHROMEOS) | 28 #endif // !defined(OS_CHROMEOS) |
OLD | NEW |