[CrOS PhoneHub] Set bluetooth_public_address field during DeviceSync
When the kPhoneHub flag is enabled, we now set the bluetooth_public_address field of the encrypted metadata during DeviceSync v2 attempts. This CL: (1) Adds the SyncedBluetoothAddressTracker class, which fetches the Bluetooth address using the BluetoothAdapter class. (2) Integrates this class with the rest of the DeviceSync flow. (3) Triggers a DeviceSync whenever the address has changed (e.g., if a user plugs in a USB Bluetooth adapter). (4) Preserves existing functionality (i.e., no synced Bluetooth address) when the flag is disabled. Bug: 1106937 Change-Id: If967f08913f495410323032094fd1f7312061057 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2342199Reviewed-by:Josh Nohle <nohle@chromium.org> Reviewed-by:
Reilly Grant <reillyg@chromium.org> Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#796606}
Showing
Please register or sign in to comment