-
Kyle Horimoto authored
Previously, the MultiDevice setup flow would make a connection to the Mojo service as soon as the flow was loaded. However, in OOBE mode, this means that the WebUI page requests a connection as soon as OOBE loads, which is before the user has signed in. Since the MultiDeviceSetup service is only created once the user has signed in, the strategy of connecting as soon as the page loads resulted in trying to connect to a service which had not yet been registered. This CL delays the process of connecting to the Mojo service; now, a connection is made only when the initializeSetupFlow() function is called or the "multidevice_setup.initializeSetupFlow" WebUI event is fired. Bug: 884065 Change-Id: I2dde7916ac400625677c45d6de1c0fc72afab976 Reviewed-on: https://chromium-review.googlesource.com/c/1259835 Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by:
Ryan Hansberry <hansberry@chromium.org> Cr-Commit-Position: refs/heads/master@{#596697}
36f28038