IdentityManager: Add APIs for querying state of refresh tokens
This CL adds APIs to IdentityManager for obtaining the set of all accounts with refresh tokens and querying whether the primary account is available with a refresh token. The design follows that of IdentityManager's caching of the primary account information: - IdentityManager initializes its state with the current state of ProfileOAuth2TokenService. - IdentityManager updates this state in response to notifications from PO2TS that an account's refresh token was updated/removed. TBR=bsazonov@chromium.org Bug: 806774 Change-Id: Idc4a37a15ced2e7d32f012a50e4e0d1fdb1aecdf Reviewed-on: https://chromium-review.googlesource.com/1098668 Commit-Queue: Colin Blundell <blundell@chromium.org> Reviewed-by:Mihai Sardarescu <msarda@chromium.org> Reviewed-by:
Marc Treib <treib@chromium.org> Reviewed-by:
Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/master@{#571451}
Showing
This diff is collapsed.
Please register or sign in to comment