DescriptionFix discovery of Smart Lock service in Proximity Auth over Blutooth Low Energy.
This CL adds observers Bluetooth device changed and device removed
notifications. Each time a device changes, it checks if the device advertises
the Smart Lock service UUID. If so and if there is no pending connection to
that device, then it tries to connect to it.
This CL also forgets the Bluetooth device that advertises Smart Lock. This
ensures that the device is disconnected and its entry removed fron the Bluetooth
device controller. Note that this strategy is fine as Bluetooth Low Energy
device that advertises Smart Lock service UUID is only used by the Proximity
Auth component.
TEST=On Chrome OS, turn on Smart Lock over Bluetooth Low Energy in settings.
Install a Smart Lock app on a BLE device. On Chrome OS, sign in and then lock
the screen. Start the Smart Lock app on a BLE device and observe that Chrome OS
magically unlocks.
BUG=479670
Committed: https://crrev.com/18d21e1eccf868ec06d59e65a93314148260e749
Cr-Commit-Position: refs/heads/master@{#327495}
Patch Set 1 #Patch Set 2 : Nit #
Total comments: 4
Patch Set 3 : Rebase #Patch Set 4 : Add DCHECKs #
Total comments: 7
Patch Set 5 : Nit #
Messages
Total messages: 18 (7 generated)
|