0

Partial revert of crrev/c/5741205

There were still some code references outside the main Chromium repo, so re-adding the soon-to-be-deprecated API while those are migrated.

Bug: 40216037, 355652328
Change-Id: I2d30e61a5b0dfc7bb1e8031b3a1e50ee6cf975bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5749404
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: James Lee <ljjlee@google.com>
Cr-Commit-Position: refs/heads/main@{#1334882}
This commit is contained in:
James Lee
2024-07-30 16:22:04 +00:00
committed by Chromium LUCI CQ
parent 8d921ef40d
commit 5a97d03352
2 changed files with 10 additions and 0 deletions

@ -89,6 +89,12 @@ std::string GetAPIKey(version_info::Channel channel);
// distribution channel instead of calling this function directly.
COMPONENT_EXPORT(GOOGLE_APIS) std::string GetAPIKey();
// Non-stable channels may have a different Google API key.
//
// DEPRECATED: Use `GetAPIKey(channel)` to get the right key for your
// distribution channel instead of calling this function directly.
COMPONENT_EXPORT(GOOGLE_APIS) std::string GetNonStableAPIKey();
// Retrieves the Chrome Remote Desktop API key.
COMPONENT_EXPORT(GOOGLE_APIS) std::string GetRemotingAPIKey();