[CrOS PhoneHub] Refactor NearbyConnections to support multiple Cores
Each Core object is meant to be used by a single client, so we will use one for Nearby Share and one for Phone Hub. Each Core instance uses the same underlying connectivity framework, so we instantiate a single OfflineServiceController and share it with all Cores. This CL also adds a service_id parameter to each mojom::NearbyConnections function so that we can decide which Core object to use to process each call. Bug: 1106937 Change-Id: Ibbf8378822862579b79321689dd00a61d204fb1c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495878Reviewed-by:Ryan Hansberry <hansberry@chromium.org> Reviewed-by:
Tom Sepez <tsepez@chromium.org> Reviewed-by:
James Vecore <vecore@google.com> Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#824962}
Showing
Please register or sign in to comment