Add API to convert AccountTrackerService::FindAccountInfoByXXX

Add methods to find AccountInfo using either account id, email
address or gaia id to IdentityManager. They are wrapper around
the corresponding method of AccountTrackerService (with a call
to GetAccountInfoForAccountWithValidRefreshToken to get the
logic to deal with kSupervisedUserPseudoEmail).

Add unit tests for the new methods.

Bug: 912170
Change-Id: Ic7da17b0f22c85349b89cb44d272a3a6b4f6d573
Reviewed-on: https://chromium-review.googlesource.com/c/1365245
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615502}
3 files changed