| 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/location.h" | 10 #include "base/location.h" |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 DBusThreadManager::Get()->GetBluetoothDeviceClient()-> | 421 DBusThreadManager::Get()->GetBluetoothDeviceClient()-> |
| 422 GetProperties(object_path); | 422 GetProperties(object_path); |
| 423 | 423 |
| 424 if (property_name == properties->bluetooth_class.name() || | 424 if (property_name == properties->bluetooth_class.name() || |
| 425 property_name == properties->address.name() || | 425 property_name == properties->address.name() || |
| 426 property_name == properties->alias.name() || | 426 property_name == properties->alias.name() || |
| 427 property_name == properties->paired.name() || | 427 property_name == properties->paired.name() || |
| 428 property_name == properties->trusted.name() || | 428 property_name == properties->trusted.name() || |
| 429 property_name == properties->connected.name() || | 429 property_name == properties->connected.name() || |
| 430 property_name == properties->uuids.name() || | 430 property_name == properties->uuids.name() || |
| 431 property_name == properties->rssi.name()) | 431 property_name == properties->rssi.name() || |
| 432 property_name == properties->tx_power.name()) |
| 432 NotifyDeviceChanged(device_chromeos); | 433 NotifyDeviceChanged(device_chromeos); |
| 433 | 434 |
| 434 // When a device becomes paired, mark it as trusted so that the user does | 435 // When a device becomes paired, mark it as trusted so that the user does |
| 435 // not need to approve every incoming connection | 436 // not need to approve every incoming connection |
| 436 if (property_name == properties->paired.name() && | 437 if (property_name == properties->paired.name() && |
| 437 properties->paired.value() && !properties->trusted.value()) | 438 properties->paired.value() && !properties->trusted.value()) |
| 438 device_chromeos->SetTrusted(); | 439 device_chromeos->SetTrusted(); |
| 439 | 440 |
| 440 // UMA connection counting | 441 // UMA connection counting |
| 441 if (property_name == properties->connected.name()) { | 442 if (property_name == properties->connected.name()) { |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1413 | 1414 |
| 1414 // If the queued request resulted in a pending call, then let it | 1415 // If the queued request resulted in a pending call, then let it |
| 1415 // asynchonously process the remaining queued requests once the pending | 1416 // asynchonously process the remaining queued requests once the pending |
| 1416 // call returns. | 1417 // call returns. |
| 1417 if (discovery_request_pending_) | 1418 if (discovery_request_pending_) |
| 1418 return; | 1419 return; |
| 1419 } | 1420 } |
| 1420 } | 1421 } |
| 1421 | 1422 |
| 1422 } // namespace chromeos | 1423 } // namespace chromeos |
| OLD | NEW |