Fix session restore after launching with PWA.
The underlying issue is that the kProfilesLastActive pref gets cleared when Chrome is launched with a specific profile, which prevents Chrome from iterating over the last active profiles and calling session restore on each of them. This CL stops clearing the pref when launched with --app-id, and avoids restoring sessions for the last active profiles if launched with --app-id. Also, ignore browser opens and closes if the browser window is for a web app, in order to prevent kProfilesLastActive pref from getting overwritten. Bug: 1022795 Change-Id: I350a54eaaf167dabb297b9bda9061fe965f0750e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1984710Reviewed-by:Greg Thompson <grt@chromium.org> Reviewed-by:
David Roger <droger@chromium.org> Commit-Queue: David Bienvenu <davidbienvenu@chromium.org> Cr-Commit-Position: refs/heads/master@{#827876}
Showing
Please register or sign in to comment