The account tracker service is seeded with the account email and GAIA ID when an account is added to Chrome. The account gets cleared as soon as it is removed from the token service. However, if the account is removed from disk (or we fail to save the token in the token DB), then the account info is left in the account tracker service indefinitely. There is thus a risk to leave account information on disk indefinitely.
We should clear the account info once the tokens are loaded as explained below:
* On desktop and ChromeOS, if we fail to read the token DB or decrypt the tokens, then the account should be kept in the account tracker.
* On mobile, the accounts are always seeded so it is fine to remove the tokens as soon as the accounts are loaded.
Comment 1 by bugdroid1@chromium.org
, Oct 8