• Sylvain Defresne's avatar
    [ios] Fix loss of incognito tabs on phones and some tablets · 4442901e
    Sylvain Defresne authored
    On devices that do not support multi-windows, iOS will still
    interpret "swipe gesture" as a request from the user to close
    the window and will use a new session identifier on following
    startup.
    
    To avoid losing state, there exist a workaround that load the
    session using the old session identifier on those device but
    the workaround was only applied to the regular tabs, thus it
    was possible to lose incognito tabs in that case.
    
    Refactor the code setting the session identifier in Browser
    to be shared between regular and incognito BrowserState.
    
    Bug: 1153606
    Change-Id: I833978da3697c88d8d31ab956f91be840d1e74e7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2622393
    Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
    Commit-Queue: Mohammad Refaat <mrefaat@chromium.org>
    Reviewed-by: default avatarMohammad Refaat <mrefaat@chromium.org>
    Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#842648}
    4442901e
browser_view_wrangler.mm 16.7 KB