system-web-apps: better handle incognito in LaunchSystemWebApp
LaunchSystemWebApp used whatever profile is provided in the parameter to create SWA windows and launching SWAs, even if the profile may not suitable to host a SWA window. This CL adds logic to determine the appropriate profile if the provided one is unsuitable. This serves as a mid-term solution for launching SWAs, and acts as a safety net to prevent chrome crashing if unsuitable profiles are provided. Specifically, it catches these two types of profiles: - Guest session "original" profile: launch into guest session's primary off the record profile (which is used for guest session browsing and SWAs). - Normal session incognito profile: launch into the original profile, because we don't support incognito SWAs. Fixed: 1109594 Change-Id: Ibe4a3b1bf7c811ef1ee02fd967307ad9bf070ee7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2423760 Commit-Queue: Jiewei Qian <qjw@chromium.org> Reviewed-by:Giovanni Ortuño Urquidi <ortuno@chromium.org> Cr-Commit-Position: refs/heads/master@{#814602}
Showing
Please register or sign in to comment