• David Bienvenu's avatar
    Fix session restore after launching with PWA. · f7713274
    David Bienvenu authored
    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: default avatarGreg Thompson <grt@chromium.org>
    Reviewed-by: default avatarDavid Roger <droger@chromium.org>
    Commit-Queue: David Bienvenu <davidbienvenu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#827876}
    f7713274
chrome_browser_main_win.cc 38.3 KB