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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 DBusThreadManager::Get()->GetBluetoothDeviceClient()-> | 372 DBusThreadManager::Get()->GetBluetoothDeviceClient()-> |
373 GetProperties(object_path); | 373 GetProperties(object_path); |
374 | 374 |
375 if (property_name == properties->bluetooth_class.name() || | 375 if (property_name == properties->bluetooth_class.name() || |
376 property_name == properties->address.name() || | 376 property_name == properties->address.name() || |
377 property_name == properties->alias.name() || | 377 property_name == properties->alias.name() || |
378 property_name == properties->paired.name() || | 378 property_name == properties->paired.name() || |
379 property_name == properties->trusted.name() || | 379 property_name == properties->trusted.name() || |
380 property_name == properties->connected.name() || | 380 property_name == properties->connected.name() || |
381 property_name == properties->uuids.name() || | 381 property_name == properties->uuids.name() || |
382 property_name == properties->rssi.name() || | 382 property_name == properties->rssi.name()) |
383 property_name == properties->connection_rssi.name() || | |
384 property_name == properties->connection_tx_power.name()) | |
385 NotifyDeviceChanged(device_chromeos); | 383 NotifyDeviceChanged(device_chromeos); |
386 | 384 |
387 // When a device becomes paired, mark it as trusted so that the user does | 385 // When a device becomes paired, mark it as trusted so that the user does |
388 // not need to approve every incoming connection | 386 // not need to approve every incoming connection |
389 if (property_name == properties->paired.name() && | 387 if (property_name == properties->paired.name() && |
390 properties->paired.value() && !properties->trusted.value()) | 388 properties->paired.value() && !properties->trusted.value()) |
391 device_chromeos->SetTrusted(); | 389 device_chromeos->SetTrusted(); |
392 | 390 |
393 // UMA connection counting | 391 // UMA connection counting |
394 if (property_name == properties->connected.name()) { | 392 if (property_name == properties->connected.name()) { |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 | 1061 |
1064 // If the queued request resulted in a pending call, then let it | 1062 // If the queued request resulted in a pending call, then let it |
1065 // asynchonously process the remaining queued requests once the pending | 1063 // asynchonously process the remaining queued requests once the pending |
1066 // call returns. | 1064 // call returns. |
1067 if (discovery_request_pending_) | 1065 if (discovery_request_pending_) |
1068 return; | 1066 return; |
1069 } | 1067 } |
1070 } | 1068 } |
1071 | 1069 |
1072 } // namespace chromeos | 1070 } // namespace chromeos |
OLD | NEW |