Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: device/bluetooth/bluetooth_adapter_bluez.cc

Issue 1847823002: bluetooth: replace gattservices dbus property with servicesresolved (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | device/bluetooth/dbus/bluetooth_device_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_bluez.h" 5 #include "device/bluetooth/bluetooth_adapter_bluez.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 property_name == properties->alias.name() || 518 property_name == properties->alias.name() ||
519 property_name == properties->paired.name() || 519 property_name == properties->paired.name() ||
520 property_name == properties->trusted.name() || 520 property_name == properties->trusted.name() ||
521 property_name == properties->connected.name() || 521 property_name == properties->connected.name() ||
522 property_name == properties->uuids.name() || 522 property_name == properties->uuids.name() ||
523 property_name == properties->rssi.name() || 523 property_name == properties->rssi.name() ||
524 property_name == properties->tx_power.name()) { 524 property_name == properties->tx_power.name()) {
525 NotifyDeviceChanged(device_bluez); 525 NotifyDeviceChanged(device_bluez);
526 } 526 }
527 527
528 if (property_name == properties->gatt_services.name()) { 528 if (property_name == properties->services_resolved.name()) {
529 device_bluez->SetGattServicesDiscoveryComplete(true); 529 device_bluez->SetGattServicesDiscoveryComplete(true);
530 NotifyGattServicesDiscovered(device_bluez); 530 NotifyGattServicesDiscovered(device_bluez);
531 } 531 }
532 532
533 // When a device becomes paired, mark it as trusted so that the user does 533 // When a device becomes paired, mark it as trusted so that the user does
534 // not need to approve every incoming connection 534 // not need to approve every incoming connection
535 if (property_name == properties->paired.name() && 535 if (property_name == properties->paired.name() &&
536 properties->paired.value() && !properties->trusted.value()) { 536 properties->paired.value() && !properties->trusted.value()) {
537 device_bluez->SetTrusted(); 537 device_bluez->SetTrusted();
538 } 538 }
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 1449
1450 // If the queued request resulted in a pending call, then let it 1450 // If the queued request resulted in a pending call, then let it
1451 // asynchonously process the remaining queued requests once the pending 1451 // asynchonously process the remaining queued requests once the pending
1452 // call returns. 1452 // call returns.
1453 if (discovery_request_pending_) 1453 if (discovery_request_pending_)
1454 return; 1454 return;
1455 } 1455 }
1456 } 1456 }
1457 1457
1458 } // namespace bluez 1458 } // namespace bluez
OLDNEW
« no previous file with comments | « no previous file | device/bluetooth/dbus/bluetooth_device_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698