| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <iostream> | |
| 6 | |
| 7 #include "base/bind.h" | 5 #include "base/bind.h" |
| 8 #include "base/callback.h" | 6 #include "base/callback.h" |
| 9 #include "base/logging.h" | 7 #include "base/logging.h" |
| 10 #include "device/bluetooth/bluetooth_adapter_bluez.h" | 8 #include "device/bluetooth/bluetooth_adapter_bluez.h" |
| 11 #include "device/bluetooth/bluetooth_gatt_characteristic.h" | 9 #include "device/bluetooth/bluetooth_gatt_characteristic.h" |
| 12 #include "device/bluetooth/bluetooth_local_gatt_service_bluez.h" | 10 #include "device/bluetooth/bluetooth_local_gatt_service_bluez.h" |
| 13 #include "device/bluetooth/dbus/bluetooth_gatt_manager_client.h" | 11 #include "device/bluetooth/dbus/bluetooth_gatt_manager_client.h" |
| 14 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 12 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
| 15 | 13 |
| 16 namespace bluez { | 14 namespace bluez { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 const ErrorCallback& error_callback, | 81 const ErrorCallback& error_callback, |
| 84 const std::string& error_name, | 82 const std::string& error_name, |
| 85 const std::string& error_message) { | 83 const std::string& error_message) { |
| 86 VLOG(1) << "[Un]Register Service failed: " << error_name | 84 VLOG(1) << "[Un]Register Service failed: " << error_name |
| 87 << ", message: " << error_message; | 85 << ", message: " << error_message; |
| 88 error_callback.Run( | 86 error_callback.Run( |
| 89 BluetoothGattServiceBlueZ::DBusErrorToServiceError(error_name)); | 87 BluetoothGattServiceBlueZ::DBusErrorToServiceError(error_name)); |
| 90 } | 88 } |
| 91 | 89 |
| 92 } // namespace bluez | 90 } // namespace bluez |
| OLD | NEW |