0

Reland "Reland "HaTS: Add HaTS Api Key""

This is a reland of commit 8475f68315
It turns out google_apis/internal is not rolled automatically, so although I had submitted https://chrome-internal-review.googlesource.com/c/chrome/google_apis/internal/+/6151544, it has to be rolled manually. This roll has been done in https://crrev.com/c/4859186.

Original change's description:
> 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}

Bug: 1121586, b/291043820, 1475428
Change-Id: Ib160384da9ced5a3cd096dc61c9e30ead92f7fcd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4859292
Commit-Queue: Ehimare Okoyomon <eokoyomon@chromium.org>
Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1196020}
This commit is contained in:
Ehimare Okoyomon
2023-09-13 15:35:58 +00:00
committed by Chromium LUCI CQ
parent 764d81fb61
commit 4ed896bb64
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();