The API keys and OAuth client ID and client secret configurations have been bundled in google_apis. Indeed there was a single method to check whether the API keys were configured: HasAPIKeysConfigured.
However the API key and the OAuth client are used in 2 different contexts:
* API key is required to use non-authorized Google APIs (e.g. safe browsing, geolocation etc)
* OAuth client is required to do authorized calls to Google APIs (e.g. Chrome sync)
With Desktop Identity Consistency, signing in to Google web requires a client ID to be configured. This is a problem for 3rd party Chromium based browsers that want to continue to use API keys.
The solution consists in replacing the HasAPIKeysConfigured with 2 different calls:
a) HasApiKeyConfigured - only checks if the API keys is configured
b) HasOAuthClientConfigured - only checks if the OAUth client is configured
Desktop Identity Consistency is only enabled if the OAuth client was configured.
Comment 1 by bugdroid1@chromium.org
, Jun 20 2018