• David Lechner's avatar
    [bluetooth] fix BlueZ GATT service enumeration · 70ef2d45
    David Lechner authored
    This fixes BlueZ GATT service enumeration when there is more than one
    device. In the BluetoothDeviceBlueZ::UpdateGattServices() method, it
    is possible that the services for the requested device are not the
    first services in |service_paths|. If this is the case returning from
    inside the loop makes it appear as if the device has no services.
    By continuing the loop instead, all services associated with this device
    are made available (by calling NotifyGattDiscoveryComplete() on them).
    
    Bug: 1087648
    Change-Id: I52dad45674330a52f7420b28a51fdd83439b4f9c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2214098
    Commit-Queue: Reilly Grant <reillyg@chromium.org>
    Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#772992}
    70ef2d45
bluetooth_gatt_bluez_unittest.cc 104 KB