• David Roger's avatar
    [Dice] Force ListAccount server call on authentication errors · f6324711
    David Roger authored
    This CL adds an API to OAuth2TokenServiceDelegate::Observer to
    listen to changes in auth errors.
    
    AccountReconcilor uses this API to trigger a ListAccount call
    when a token becomes invalid.
    This is necessary because in that case, the account can be invalid
    in the cookie without the cookie changing. Chrome needs to make a
    call to ListAccount to have an accurate view of the Gaia accounts in
    the cookie.
    
    Bug: 823714
    Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
    Change-Id: Ie22226adfe6c425acaffe875a314c4a6b8de5e88
    Reviewed-on: https://chromium-review.googlesource.com/986268
    Commit-Queue: David Roger <droger@chromium.org>
    Reviewed-by: default avatarMihai Sardarescu <msarda@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#549493}
    f6324711
oauth2_token_service_delegate.h 4.11 KB