[CrOS PhoneHub] Add SetNearbyConnector() Mojo API
This function allows clients to set a NearbyConnector to be used when attempting a Nearby Connection. Within the SecureChannel implementation, connection requests are rejected with the newly-added MISSING_NEARBY_CONNECTOR failure reason if a connection is requested when a NearbyConnector has not been set. A future CL will use the provided NearbyConnector when initiating a connection. On the client side, NearbyConnectorFactory now sets the NearbyConnector instance when it is created. PhoneHubManagerFactory adds a dependency on NearbyConnectorFactory to ensure that the NearbyConnector is set before Phone Hub starts up. Bug: 1106937 Change-Id: I6f25aa9be817c0bb15c19045d2c4e9494b674368 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2513748 Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by:Ryan Hansberry <hansberry@chromium.org> Reviewed-by:
James Vecore <vecore@google.com> Reviewed-by:
Tom Sepez <tsepez@chromium.org> Cr-Commit-Position: refs/heads/master@{#825047}
Showing
Please register or sign in to comment