| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_chromeos.h" | 5 #include "device/bluetooth/bluetooth_adapter_chromeos.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 BluetoothDeviceClient::Properties* properties = | 328 BluetoothDeviceClient::Properties* properties = |
| 329 DBusThreadManager::Get()->GetBluetoothDeviceClient()-> | 329 DBusThreadManager::Get()->GetBluetoothDeviceClient()-> |
| 330 GetProperties(object_path); | 330 GetProperties(object_path); |
| 331 | 331 |
| 332 if (property_name == properties->bluetooth_class.name() || | 332 if (property_name == properties->bluetooth_class.name() || |
| 333 property_name == properties->address.name() || | 333 property_name == properties->address.name() || |
| 334 property_name == properties->alias.name() || | 334 property_name == properties->alias.name() || |
| 335 property_name == properties->paired.name() || | 335 property_name == properties->paired.name() || |
| 336 property_name == properties->trusted.name() || | 336 property_name == properties->trusted.name() || |
| 337 property_name == properties->connected.name() || | 337 property_name == properties->connected.name() || |
| 338 property_name == properties->uuids.name()) | 338 property_name == properties->uuids.name() || |
| 339 property_name == properties->rssi.name() || |
| 340 property_name == properties->connection_rssi.name() || |
| 341 property_name == properties->connection_tx_power.name()) |
| 339 NotifyDeviceChanged(device_chromeos); | 342 NotifyDeviceChanged(device_chromeos); |
| 340 | 343 |
| 341 // When a device becomes paired, mark it as trusted so that the user does | 344 // When a device becomes paired, mark it as trusted so that the user does |
| 342 // not need to approve every incoming connection | 345 // not need to approve every incoming connection |
| 343 if (property_name == properties->paired.name() && | 346 if (property_name == properties->paired.name() && |
| 344 properties->paired.value()) | 347 properties->paired.value()) |
| 345 device_chromeos->SetTrusted(); | 348 device_chromeos->SetTrusted(); |
| 346 | 349 |
| 347 // UMA connection counting | 350 // UMA connection counting |
| 348 if (property_name == properties->connected.name()) { | 351 if (property_name == properties->connected.name()) { |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 | 884 |
| 882 // If the queued request resulted in a pending call, then let it | 885 // If the queued request resulted in a pending call, then let it |
| 883 // asynchonously process the remaining queued requests once the pending | 886 // asynchonously process the remaining queued requests once the pending |
| 884 // call returns. | 887 // call returns. |
| 885 if (discovery_request_pending_) | 888 if (discovery_request_pending_) |
| 886 return; | 889 return; |
| 887 } | 890 } |
| 888 } | 891 } |
| 889 | 892 |
| 890 } // namespace chromeos | 893 } // namespace chromeos |
| OLD | NEW |