• Christopher Cameron's avatar
    MacPWAs: Allow creating of AppShimHost before process exists · ae0e8508
    Christopher Cameron authored
    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: default avatarDominick Ng <dominickn@chromium.org>
    Reviewed-by: default avatarccameron <ccameron@chromium.org>
    Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
    Commit-Queue: ccameron <ccameron@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#604440}
    ae0e8508
browser_frame_mac.mm 9.3 KB