| 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 #include "device/bluetooth/bluetooth_gatt_connection_chromeos.h" | 5 #include "device/bluetooth/bluetooth_gatt_connection_chromeos.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chromeos/dbus/dbus_thread_manager.h" | 9 #include "chromeos/dbus/dbus_thread_manager.h" |
| 10 #include "device/bluetooth/bluetooth_adapter.h" | 10 #include "device/bluetooth/bluetooth_adapter.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 GetProperties(object_path_); | 87 GetProperties(object_path_); |
| 88 | 88 |
| 89 if (!properties) { | 89 if (!properties) { |
| 90 connected_ = false; | 90 connected_ = false; |
| 91 return; | 91 return; |
| 92 } | 92 } |
| 93 | 93 |
| 94 if (property_name == properties->connected.name() && | 94 if (property_name == properties->connected.name() && |
| 95 !properties->connected.value()) | 95 !properties->connected.value()) |
| 96 connected_ = false; | 96 connected_ = false; |
| 97 |
| 98 // The remote device's bluetooth address may change if it is paired while |
| 99 // connected. |
| 100 if (property_name == properties->address.name()) |
| 101 device_address_ = properties->address.value(); |
| 97 } | 102 } |
| 98 | 103 |
| 99 } // namespace chromeos | 104 } // namespace chromeos |
| OLD | NEW |