|
1 |
| -diff --git a/google_apis/google_api_keys-inc.cc b/google_apis/google_api_keys-inc.cc |
2 |
| -index 4d13e697a54d..61aac7b48662 100644 |
3 |
| ---- a/google_apis/google_api_keys-inc.cc |
4 |
| -+++ b/google_apis/google_api_keys-inc.cc |
5 |
| -@@ -193,11 +193,11 @@ class APIKeyCache { |
6 |
| - std::string default_client_id = CalculateKeyValue( |
7 |
| - GOOGLE_DEFAULT_CLIENT_ID, |
8 |
| - STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), std::string(), |
9 |
| -- nullptr, std::string(), environment.get(), command_line, gaia_config); |
10 |
| -+ ::switches::kOAuth2ClientID, std::string(), environment.get(), command_line, gaia_config); |
11 |
| - std::string default_client_secret = CalculateKeyValue( |
12 |
| - GOOGLE_DEFAULT_CLIENT_SECRET, |
13 |
| - STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_SECRET), std::string(), |
14 |
| -- nullptr, std::string(), environment.get(), command_line, gaia_config); |
15 |
| -+ ::switches::kOAuth2ClientSecret, std::string(), environment.get(), command_line, gaia_config); |
| 1 | +diff --git a/google_apis/api_key_cache.cc b/google_apis/api_key_cache.cc |
| 2 | +index e8bc9bb79704..38e5d2bd005f 100644 |
| 3 | +--- a/google_apis/api_key_cache.cc |
| 4 | ++++ b/google_apis/api_key_cache.cc |
| 5 | +@@ -221,14 +221,14 @@ ApiKeyCache::ApiKeyCache(const DefaultApiKeys& default_api_keys) { |
| 6 | + |
| 7 | + std::string default_client_id = CalculateKeyValue( |
| 8 | + default_api_keys.google_default_client_id, |
| 9 | +- STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), std::string(), nullptr, |
| 10 | ++ STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), std::string(), ::switches::kOAuth2ClientID, |
| 11 | + std::string(), environment.get(), command_line, gaia_config, |
| 12 | + default_api_keys.allow_override_via_environment, |
| 13 | + default_api_keys.allow_unset_values); |
| 14 | + std::string default_client_secret = CalculateKeyValue( |
| 15 | + default_api_keys.google_default_client_secret, |
| 16 | + STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_SECRET), std::string(), |
| 17 | +- nullptr, std::string(), environment.get(), command_line, gaia_config, |
| 18 | ++ ::switches::kOAuth2ClientSecret, std::string(), environment.get(), command_line, gaia_config, |
| 19 | + default_api_keys.allow_override_via_environment, |
| 20 | + default_api_keys.allow_unset_values); |
16 | 21 |
|
17 |
| - // We currently only allow overriding the baked-in values for the |
18 |
| - // default OAuth2 client ID and secret using a command-line |
|
0 commit comments