Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bluetooth: Fix DCHECK failure with calling forget() twice
In the current default scenario of features::kWebBluetoothNewPermissionsBackend disabled, there is a DCHECK failure when forget() API is called twice. It is because forget() in the old permission backend flow blindly passes the device_address for RemoveDevice() without validating the device_address. The change fixes it by checking if the device_address is valid as RemoveDevice() expects a valid one. Bug: 1403822 Change-Id: Ib1cdf7db988b122b1b8fec820fc67a19c25b4415 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4146018 Reviewed-by: Reilly Grant <[email protected]> Commit-Queue: Jack Hsieh <[email protected]> Cr-Commit-Position: refs/heads/main@{#1090455}
- Loading branch information