[Android][Signin] Add utility methods to CoreAccountInfo
Adds a getAndroidAccount, getId, getEmail, getGaiaId static helpers to CoreAccountInfo. These helpers all do the same task - they return Account/CoreAccountId/Email/GaiaId from the argument if it's not null, and return null otherwise. IdentityManager.getPrimaryAccountId will be replaced by this in subsequent CLs. Bug: 1051000 Change-Id: Id0cc2bb5049f5464cbfc06a4866c7a9bf2074724 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2061813 Commit-Queue: Boris Sazonov <bsazonov@chromium.org> Auto-Submit: Boris Sazonov <bsazonov@chromium.org> Reviewed-by:Alice Wang <aliceywang@chromium.org> Cr-Commit-Position: refs/heads/master@{#743082}
Showing
Please register or sign in to comment