[CrOS MultiDevice] Update BleScanner.
This CL adds ConnectionRole as part of the scan filter passed to BleScanner; then, when a scan result is returned, the delegate callback is only invoked if a scan filter with the correct role is present. This is necessary because BleConnectionManager should not attempt to handle scan results for the incorrect role. This CL also tweaks the Delegate's callback function to return a ConnectionRole instead of a "is background" bool. Bug: 824568, 752273 Change-Id: I6467312bfbe2057b046cbc606a55d30e90e48303 Reviewed-on: https://chromium-review.googlesource.com/1102124Reviewed-by:Ryan Hansberry <hansberry@chromium.org> Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#567695}
Showing
This diff is collapsed.
Please register or sign in to comment