Reland "system-web-apps: better handle incognito in LaunchSystemWebApp"
This is a reland of de6bbcbc The reland deletes EXPECT_DCHECK_DEATH to all launch tests, because death tests aren't reliable in browsertest. And manually test LaunchSystemWebApp behaves correctly in debug / DCHECK builds. Test=Manually verified debug build and release build behaves correctly. - When DCHECK is on: DCHECKs when launching with a wrong profile - When DCHECK is off: launches into an appropriate profile Original change's description: > 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} Change-Id: I5766a26c5376c7e59180e4d9dd2befe015c13e9f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2459010 Commit-Queue: Jiewei Qian <qjw@chromium.org> Reviewed-by:Giovanni Ortuño Urquidi <ortuno@chromium.org> Cr-Commit-Position: refs/heads/master@{#816104}
Showing
Please register or sign in to comment