[CrOS MultiDevice] Remove UiMode in favor of MultiDeviceSetupDelegate.
Before this CL, the <multidevice-setup> element was told what "UI mode" (i.e., OOBE vs. post-OOBE) and behaved differently depending on what mode was active. This abstraction was leaky, since it caused the element to change its logic based on what its client at a higher level was. This CL adds a MultiDeviceSetupDelegate interface and injects this interface into the <multidevice-setup> element, which uses it to perform tasks such as setting the host device. One concrete implementation of this interface is provided for the post-OOBE case; a future CL will add an implementation for OOBE. This CL also removes multidevice_setup_dialog.js in favor of adding a new <multidevice-setup-post-oobe> element. Bug: 884058 Change-Id: I76b6553928e706da4870339d306bc32bea7ac3e6 Reviewed-on: https://chromium-review.googlesource.com/1247525Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by:
Ryan Hansberry <hansberry@chromium.org> Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#595258}
Showing
Please register or sign in to comment