• Jan Krcal's avatar
    [Profile picker] Use system profile on startup when showing the picker · fa8de986
    Jan Krcal authored
    This CL changes the logic to load the startup profile whenever the
    profile picker should be loaded. It instead loads the guest profile
    to indicate the picker should be open. This speeds up showing the picker
    when the last profile used is heavy to load. The CL also unifies the
    logic to decide whether to show the new picker (or the old user manager)
    into one function, GetStartupProfile().
    
    There is one behavioral difference: the new code directly opens browser
    windows if the user had multiple profiles open last time. This is desired
    because having multiple profiles open simultaneously the last time is a
    strong signal the user wants to continue this way. Note that having
    multiple profiles open the last time happens only in limited situations,
    e.g. via chrome://restart or via session restore (when logging out /
    switching off the machine with multiple profiles' windows open).
    
    Bug: 1150330
    Change-Id: Iae9744f44bc242e9aaaf8f287cc29e1089326786
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2532460
    Commit-Queue: Jan Krcal <jkrcal@chromium.org>
    Reviewed-by: default avatarDavid Roger <droger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#828665}
    fa8de986
startup_browser_creator.h 10.3 KB