MacPWAs: Allow creating of AppShimHost before process exists
Allow for an AppShimHost to be created before the corresponding AppShimHostBootstrap. Update OnAppLaunchComplete to save the launch result and send it only once an AppShimHostBootstrap is attached. Change ExtensionAppShimHandler profile paths to use the full path (as is reported by the Profile object, as opposed to the shim's message). Change the method GetHostForBrowser to instead be GetViewsBridgeFactoryHostForBrowser, because the ViewsBridgeFactory is what all callers are after. Make this call trigger creation of an AppShimHost if needed to provide a ViewsBridgeFactory. Keep this guarded behind a flag for now. Add tests for this functionality. In the tests, further decouple the AppShimHostBootstrap from its AppShimHost. Bug: 896917 Change-Id: Ib9e4ad6535ca87cd0e01303fbfc772b8892aec12 Reviewed-on: https://chromium-review.googlesource.com/c/1309307Reviewed-by:Dominick Ng <dominickn@chromium.org> Reviewed-by:
ccameron <ccameron@chromium.org> Reviewed-by:
Avi Drissman <avi@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#604440}
Showing
Please register or sign in to comment