• Alex Ilin's avatar
    [identity] Clear cookie before showing the legacy consent page · 69104663
    Alex Ilin authored
    The webview's cookie jar isn't reset between getAuthToken() calls
    within a Chrome session. This can lead to sub-optimal experience when
    the user sees on the consent page the accounts they were previously
    signed in.
    
    This behavior is also problematic if we decide to roll back the new
    consent flow experiment. After the experiment rollback, the user
    will see all their Chrome accounts whereas Chrome should display only
    a primary account.
    
    This CL cleans webview's cookies before starting the legacy consent
    flow.
    
    Fixed: 1075929
    Change-Id: Ia502ca74d5763c206c680772c43764476b74c5e4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2168879
    Commit-Queue: Alex Ilin <alexilin@chromium.org>
    Reviewed-by: default avatarDavid Roger <droger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#763445}
    69104663
web_auth_flow.h 4.73 KB