commit | fab3958229dcefdba51a52da2f36c58ed4e4ea30 | [log] [tgz] |
---|---|---|
author | Brando <brandosocarras@google.com> | Wed Dec 14 18:35:55 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 14 18:35:55 2022 |
tree | 7655ef02f40ad78acc91c75377545c38d2b09e21 | |
parent | 0c37d5ab6093047fed901d58fcaa16aacfe60392 [diff] |
[Fast Pair] Stop GATT connect timeout only if correct service discovered The GATT connection timeout timer stops when GattDiscoveryCompleteForService is called from the adapter if the service discovered is the Fast Pair service for the device associated with the FastPairGattServiceClientImpl which the function belogn. This function is called for every observing the adapter, regardless of whether the service discovered belongs to the device to which the client is associated, so this is checked inside of the aforementioned function. The call to stop the timer is moved inside of the if branch checking this condition from its erroneous position outside of it. Initial pair was successfully completed on DUT. Given that the GATT client is fast pair protocol agnostic, this is sufficient evidence that the change doesn't affect the GATT connection. Test: unit tests in this CL and test on DUT: Fixed: b/262270537 Change-Id: Ifdd684a0fe1b55eaca4f37dc9d774e3a3a49053e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4099546 Reviewed-by: Juliet Lévesque <julietlevesque@google.com> Commit-Queue: Brando Socarras <brandosocarras@google.com> Cr-Commit-Position: refs/heads/main@{#1083215}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.