• David Bienvenu's avatar
    Reland "Fix session restore after launching with PWA." · 35047f4e
    David Bienvenu authored
    This is a reland of f7713274
    
    Original change's description:
    > 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/+/1984710
    > Reviewed-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}
    
    Bug: 1022795
    Change-Id: Ia09ddd04dcd853f8bc7322ecf7767580f3076ccf
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2546841
    Commit-Queue: David Bienvenu <davidbienvenu@chromium.org>
    Reviewed-by: default avatarGreg Thompson <grt@chromium.org>
    Reviewed-by: default avatarDavid Roger <droger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#831041}
    35047f4e
chrome_browser_main.cc 75.2 KB