Change identity_services_provider_android.cc to talk to IdentityManager

identity_services_provider_android.cc serves as the glue between the
Java Profile object and the Java signin-related objects associated with
that Profile. In particular, it allows for getting the Java
AccountTrackerService and OAuth2TokenService objects associated with the
Java Profile. This mapping isn't done in Java itself as the Java Profile
object does not have a concept of KeyedServices.

When we have internalized usage of these classes behind IdentityManager
in Java, this glue will naturally be only on IdentityManager rather than
on the underlying internal classes. In order to enable the completion of
internalization of the C++ classes (of which this is one of the very few
remaining blockers), we are introducing legacy C++ APIs on
IdentityManager to get the Java objects for AccountTrackerService and
ProfileOAuth2TokenService.

Bug: 934701
Change-Id: Iab70b66a14892dcb37a6924e1e76742b5ac570a4
Reviewed-on: https://chromium-review.googlesource.com/c/1482793
Reviewed-by: Mihai Sardarescu <msarda@chromium.org>
Commit-Queue: Colin Blundell <blundell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634623}
3 files changed