0

cros-geo-apikey: Update ChromeOS surfaces to use new API keys

Introduce new methods for ChromeOS to access the ChromeOS-specific GCP
API keys. Update the `SimpleGeolocationRequest` and
`ChromeContentBrowserClient` to use these new keys instead.

Bug: 394051078
Change-Id: I36b6995b3bfb7edd81ac63d785c0a8946101137b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6361503
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Mihai Sardarescu <msarda@chromium.org>
Commit-Queue: Zauri Meshveliani <zauri@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1438300}
This commit is contained in:
Zauri Meshveliani
2025-03-26 11:52:22 -07:00
committed by Chromium LUCI CQ
parent 130df3f6a9
commit f1341b6f55
12 changed files with 221 additions and 2 deletions

@ -113,6 +113,14 @@ COMPONENT_EXPORT(GOOGLE_APIS) const std::string& GetFresnelAPIKey();
// Retrieves the Boca API Key.
COMPONENT_EXPORT(GOOGLE_APIS) const std::string& GetBocaAPIKey();
// Retrieves the ChromeOS-specific Geolocation API Key used by the System
// Services.
COMPONENT_EXPORT(GOOGLE_APIS) const std::string& GetCrosSystemGeoAPIKey();
// Retrieves the ChromeOS-specific Geolocation API Key used by the Chrome
// browser.
COMPONENT_EXPORT(GOOGLE_APIS) const std::string& GetCrosChromeGeoAPIKey();
#endif
// Retrieves the key used to sign metrics (UMA/UKM) uploads.