MacPWAs: Add AppShimManager::LoadAndLaunchApp function
This is a no-functional-change refactor that changes the function OnShimProcessConnectedForLaunch (which is used to launch the app when an app shim connects) to be more generically written. This is towards unifying four code paths: 1. OnShimProcessConnectedForLaunch, when the user launches an app shim 2. OnShimSelectedProfile, when the user selects a profile from the Profile menu 3. OnShimOpenedFiles, when the user opens files (e.g, by opening in Finder) 4. OnShimReopen, which is the *new* behavior in this bug, which will open a new window when the shim is running but has no active profiles. The next patch in this sequence will changes paths 2 and 3 to use this function. Bug: 1094419 Change-Id: I05265b9923db0f811bed239f2cd4db34e4c6553c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2402164Reviewed-by:Alexey Baskakov <loyso@chromium.org> Reviewed-by:
Daniel Murphy <dmurph@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#805796}
Showing
Please register or sign in to comment