PKGBUILDs/extra/chromium/use-oauth2-client-switches-as-default.patch

19 lines
1.1 KiB
Diff
Raw Normal View History

2024-05-12 14:47:51 +00:00
diff --git a/google_apis/google_api_keys-inc.cc b/google_apis/google_api_keys-inc.cc
2024-06-12 12:55:18 +00:00
index 4d13e697a54d..61aac7b48662 100644
2024-05-12 14:47:51 +00:00
--- a/google_apis/google_api_keys-inc.cc
+++ b/google_apis/google_api_keys-inc.cc
2024-06-12 12:55:18 +00:00
@@ -193,11 +193,11 @@ class APIKeyCache {
2021-03-03 01:25:53 +00:00
std::string default_client_id = CalculateKeyValue(
GOOGLE_DEFAULT_CLIENT_ID,
2024-06-12 12:55:18 +00:00
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);
2021-03-03 01:25:53 +00:00
std::string default_client_secret = CalculateKeyValue(
GOOGLE_DEFAULT_CLIENT_SECRET,
2024-06-12 12:55:18 +00:00
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);
2021-03-03 01:25:53 +00:00
// We currently only allow overriding the baked-in values for the
2024-06-12 12:55:18 +00:00
// default OAuth2 client ID and secret using a command-line