Extract Chrome OS parameters from PO2TSBuilder

This is an intermediate step in the process of moving all of
ProfileOAuth2TokenServiceBuilder code into IdentityManagerBuilder. To do
this, the building of PO2TS cannot use Profile not any code from

In this CL, ProfileOAuth2TokenServiceBuilder is modified to access the
AccountManager and check if the profile is a regular one, both on Chrome
OS, from parameters provided by IdentityManagerFactory.

Bug: 974198
Change-Id: I00ba3a804975788f5d1eb45dd25d426ec59e9f20
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1690569
Reviewed-by: Colin Blundell <blundell@chromium.org>
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Cr-Commit-Position: refs/heads/master@{#675570}
6 files changed