-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ungoogled-chromium
updated
68 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
diff --git a/google_apis/google_api_keys-inc.cc b/google_apis/google_api_keys-inc.cc | ||
index 4d13e697a54d..61aac7b48662 100644 | ||
--- a/google_apis/google_api_keys-inc.cc | ||
+++ b/google_apis/google_api_keys-inc.cc | ||
@@ -193,11 +193,11 @@ class APIKeyCache { | ||
std::string default_client_id = CalculateKeyValue( | ||
GOOGLE_DEFAULT_CLIENT_ID, | ||
STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), std::string(), | ||
- nullptr, std::string(), environment.get(), command_line, gaia_config); | ||
+ ::switches::kOAuth2ClientID, std::string(), environment.get(), command_line, gaia_config); | ||
std::string default_client_secret = CalculateKeyValue( | ||
GOOGLE_DEFAULT_CLIENT_SECRET, | ||
STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_SECRET), std::string(), | ||
- nullptr, std::string(), environment.get(), command_line, gaia_config); | ||
+ ::switches::kOAuth2ClientSecret, std::string(), environment.get(), command_line, gaia_config); | ||
diff --git a/google_apis/api_key_cache.cc b/google_apis/api_key_cache.cc | ||
index e8bc9bb79704..38e5d2bd005f 100644 | ||
--- a/google_apis/api_key_cache.cc | ||
+++ b/google_apis/api_key_cache.cc | ||
@@ -221,14 +221,14 @@ ApiKeyCache::ApiKeyCache(const DefaultApiKeys& default_api_keys) { | ||
|
||
std::string default_client_id = CalculateKeyValue( | ||
default_api_keys.google_default_client_id, | ||
- STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), std::string(), nullptr, | ||
+ STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), std::string(), ::switches::kOAuth2ClientID, | ||
std::string(), environment.get(), command_line, gaia_config, | ||
default_api_keys.allow_override_via_environment, | ||
default_api_keys.allow_unset_values); | ||
std::string default_client_secret = CalculateKeyValue( | ||
default_api_keys.google_default_client_secret, | ||
STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_SECRET), std::string(), | ||
- nullptr, std::string(), environment.get(), command_line, gaia_config, | ||
+ ::switches::kOAuth2ClientSecret, std::string(), environment.get(), command_line, gaia_config, | ||
default_api_keys.allow_override_via_environment, | ||
default_api_keys.allow_unset_values); | ||
|
||
// We currently only allow overriding the baked-in values for the | ||
// default OAuth2 client ID and secret using a command-line |