Add virtual GetJavaObject on profile_oauth2_token_service_delegate

This makes GetJavaObject from oauth2_token_service_delegate_android
virtual and defined on the base class,
profile_oauth2_token_service_delegate. It is a prerequisite to the
internalization of oauth2_token_service_delegate_android, as will need a reference on on
construction. This also avoids the use of a static_cast to
oauth2_token_service_delegate_android in Identity_manager that is not
always valid.

details here:

Bug: 934688
Change-Id: Ie0c6d3e004dadd36fe21147a55616d782f2939dc
Commit-Queue: Pâris Meuleman <>
Reviewed-by: Boris Sazonov <>
Reviewed-by: Sylvain Defresne <>
Cr-Commit-Position: refs/heads/master@{#695970}
6 files changed