[SmartLock] Do not trust BluetoothAdapter values shortly after resume.
For a short time window after resuming from suspension, BluetoothAdapter returns incorrect presence and power values (crbug.com/986896). This CL is a stopgap measure while we wait for this bug to be resolved. This CL caches the correct values, and uses them within that time window instead of directly requesting them from BluetoothAdapter. This CL also partially addresses crbug.com/890047; it resolves one of the flickering tooltips. Bug: 969036, 890047 Change-Id: I26ba8c85d1c3e086ae598aec6abbdae7ee6c5164 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715632Reviewed-by:Kyle Horimoto <khorimoto@chromium.org> Commit-Queue: Ryan Hansberry <hansberry@chromium.org> Cr-Commit-Position: refs/heads/master@{#681009}
Showing
Please register or sign in to comment