0
Files
src/device
Garfield Tan 9b527bc41e bluetooth: Notify observers when device pair states change
In particular, BluetoothSerialDeviceEnumerator only enumerates devices
once at construction, and relies on observer events to update its
serial port list. Due to crbug.com/387371131, we disabled bond state
monitoring, but this bug revealed that we can't stop bond state
monitoring completely.

In addition, this CL introduces logic of handling unpaired devices for
the same reason.

Plenty of code related to bond state monitoring wasn't cleaned up in
crrev.com/c/6341269, so this CL doesn't seem to be complete. Please
refer to crrev.com/c/6114763 for missing files in this CL.

Bug: 408517761
Test: Device shows up in the list if paired after opening the serial
port chooser once.
Test: Device is removed in the list if unpaired after opening the
serial port chooser once.

Change-Id: I0d437ad65e09cdf7f2aa3f08d131bbe3d940c044
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6435397
Commit-Queue: Garfield Tan <xutan@chromium.org>
Reviewed-by: Jack Hsieh <chengweih@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1443766}
2025-04-07 14:28:09 -07:00
..