0

Reland "HaTS: Add HaTS Api Key"

This is a reland of commit 53451bb279

Original change's description:
> HaTS: Add HaTS Api Key
>
> Bug: 1121586, b/291043820
> Change-Id: I6fc2db36b61d1ec4fefedf69c380aec196707032
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4683948
> Commit-Queue: Ehimare Okoyomon <eokoyomon@chromium.org>
> Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1187261}

Bug: 1121586, b/291043820, 1475428
Change-Id: I66e5d709c342dff35068a69f4dc0cba369aee5e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4808127
Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
Commit-Queue: Ehimare Okoyomon <eokoyomon@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1188271}
This commit is contained in:
Ehimare Okoyomon
2023-08-25 10:50:32 +00:00
committed by Chromium LUCI CQ
parent a0ac6e6f4f
commit 8475f68315
3 changed files with 33 additions and 0 deletions
chrome/browser/ui/webui/hats
google_apis

@ -83,6 +83,12 @@ COMPONENT_EXPORT(GOOGLE_APIS) std::string GetRemotingAPIKey();
// Retrieves the Speech On-Device API (SODA) API Key.
COMPONENT_EXPORT(GOOGLE_APIS) std::string GetSodaAPIKey();
#if !BUILDFLAG(IS_ANDROID)
// Retrieves the HaTS API Key. This key is only used for desktop HaTS
// and the internal API Key is only defined in non-Android builds.
COMPONENT_EXPORT(GOOGLE_APIS) std::string GetHatsAPIKey();
#endif
#if BUILDFLAG(IS_CHROMEOS_ASH)
// Retrieves the Sharing API Key.
COMPONENT_EXPORT(GOOGLE_APIS) std::string GetSharingAPIKey();