Stop listening for OnRefreshTokensLoaded() in FamilyInfoFetcher
In crrev.com/c/1454618 FamilyInfoFetcher was migrated to use PrimaryAccountAccessTokenFetcher. However the code is still observing IdentityManager for the OnRefreshTokensLoaded() notification. It turns out that it is not very useful to listen to that as it's really unreliable. The reason is that at the time StartFetching gets called, OnRefreshTokensLoaded might or might not have happened already. If it has *not* already happened, then we'll report an error to the client. But if it *has* already happened, then we'll just end up waiting forever anyway. And there's not even a way for the client to know. Bug: 920965 Change-Id: I49b8741bfe438855bdf9c74c1a52528bba3baa79 Reviewed-on: https://chromium-review.googlesource.com/c/1454959 Commit-Queue: Sergio Villar <svillar@igalia.com> Reviewed-by:Colin Blundell <blundell@chromium.org> Reviewed-by:
Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#629928}
Showing
Please register or sign in to comment