Move ActiveAccountAccessTokenFetcherImpl out of IdentityProvider
IdentityProvider currently has baked-in knowledge of OAuth2TokenService for functionality that is shared between ProfileIdentityProvider and DeviceIdentityProvider. However, as we will be converting ProfileIdentityProvider to talk to IdentityManager rather than OAuth2TokenService, this baked-in knowledge needs to be moved out of IdentityProvider; ultimately, it will end up only in DeviceIdentityProvider. This CL takes the first step along that path by moving ActiveAccountAccessTokenFetcherImpl, which fetches access tokens via OAuth2TokenService, out of identity_provider.cc into its own file. The next CL will have ProfileIdentityProvider and DeviceIdentityProvider each implement FetchAccessToken() rather than having IdentityProvider do so directly. Bug: 809452 Change-Id: I664c4da998cf90d0a398dc2c9e309425f95515a3 Reviewed-on: https://chromium-review.googlesource.com/1114604Reviewed-by:Pavel Yatsuk <pavely@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/master@{#571070}
Showing
Please register or sign in to comment