Migrate remaining usages of google_apis::GetNonStableAPIKey()
This CL is purely cleanup; there are no functional changes (in particular the same all callers continue to use the same API key as previously). AX-Relnotes: n/a. Bug: 40216037,355652328 Change-Id: Ic3d13df0e6b33a5e4ac76a61294f70dee1aaaf7d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5741205 Reviewed-by: Alex Ilin <alexilin@chromium.org> Reviewed-by: Sylvain Defresne <sdefresne@chromium.org> Reviewed-by: Nate Fischer <ntfschr@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Commit-Queue: James Lee <ljjlee@google.com> Cr-Commit-Position: refs/heads/main@{#1334802}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
1a6092d117
commit
4c20facac8
android_webview/browser
chrome/browser
accessibility
ash
login
oobe_quick_start
feed
ip_protection
query_tiles
ui
components
autofill
core
browser
crowdsourcing
endpoint_fetcher
manta
password_manager
core
browser
leak_detection
google_apis
@ -38,17 +38,6 @@
|
|||||||
#include "net/third_party/quiche/src/quiche/blind_sign_auth/proto/blind_sign_auth_options.pb.h"
|
#include "net/third_party/quiche/src/quiche/blind_sign_auth/proto/blind_sign_auth_options.pb.h"
|
||||||
#include "net/third_party/quiche/src/quiche/blind_sign_auth/proto/spend_token_data.pb.h"
|
#include "net/third_party/quiche/src/quiche/blind_sign_auth/proto/spend_token_data.pb.h"
|
||||||
|
|
||||||
namespace {
|
|
||||||
// TODO(crbug.com/40216037): Once `google_apis::GetAPIKey()` handles this
|
|
||||||
// logic we can remove this helper.
|
|
||||||
std::string GetAPIKey() {
|
|
||||||
version_info::Channel channel = version_info::android::GetChannel();
|
|
||||||
return channel == version_info::Channel::STABLE
|
|
||||||
? google_apis::GetAPIKey()
|
|
||||||
: google_apis::GetNonStableAPIKey();
|
|
||||||
}
|
|
||||||
} // namespace
|
|
||||||
|
|
||||||
namespace android_webview {
|
namespace android_webview {
|
||||||
|
|
||||||
AwIpProtectionConfigProvider::AwIpProtectionConfigProvider(
|
AwIpProtectionConfigProvider::AwIpProtectionConfigProvider(
|
||||||
@ -71,7 +60,7 @@ void AwIpProtectionConfigProvider::SetUp() {
|
|||||||
->GetURLLoaderFactoryForBrowserProcess()
|
->GetURLLoaderFactoryForBrowserProcess()
|
||||||
.get(),
|
.get(),
|
||||||
ip_protection::IpProtectionConfigProviderHelper::kWebViewIpBlinding,
|
ip_protection::IpProtectionConfigProviderHelper::kWebViewIpBlinding,
|
||||||
GetAPIKey());
|
google_apis::GetAPIKey(version_info::android::GetChannel()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!bsa_) {
|
if (!bsa_) {
|
||||||
|
@ -43,14 +43,6 @@ using LanguageInfo = language::UrlLanguageHistogram::LanguageInfo;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// Returns the Chrome Google API key for the channel of this build.
|
|
||||||
std::string APIKeyForChannel() {
|
|
||||||
if (chrome::GetChannel() == version_info::Channel::STABLE) {
|
|
||||||
return google_apis::GetAPIKey();
|
|
||||||
}
|
|
||||||
return google_apis::GetNonStableAPIKey();
|
|
||||||
}
|
|
||||||
|
|
||||||
AccessibilityLabelsService::ImageAnnotatorBinder&
|
AccessibilityLabelsService::ImageAnnotatorBinder&
|
||||||
GetImageAnnotatorBinderOverride() {
|
GetImageAnnotatorBinderOverride() {
|
||||||
static base::NoDestructor<AccessibilityLabelsService::ImageAnnotatorBinder>
|
static base::NoDestructor<AccessibilityLabelsService::ImageAnnotatorBinder>
|
||||||
@ -237,7 +229,8 @@ void AccessibilityLabelsService::BindImageAnnotator(
|
|||||||
auto* manta_service = manta::MantaServiceFactory::GetForProfile(profile_);
|
auto* manta_service = manta::MantaServiceFactory::GetForProfile(profile_);
|
||||||
CHECK(manta_service);
|
CHECK(manta_service);
|
||||||
service_ = std::make_unique<image_annotation::ImageAnnotationService>(
|
service_ = std::make_unique<image_annotation::ImageAnnotationService>(
|
||||||
std::move(service_receiver), APIKeyForChannel(),
|
std::move(service_receiver),
|
||||||
|
google_apis::GetAPIKey(chrome::GetChannel()),
|
||||||
profile_->GetURLLoaderFactory(),
|
profile_->GetURLLoaderFactory(),
|
||||||
manta_service->CreateAnchovyProvider(),
|
manta_service->CreateAnchovyProvider(),
|
||||||
std::make_unique<ImageAnnotatorClient>(profile_));
|
std::make_unique<ImageAnnotatorClient>(profile_));
|
||||||
|
@ -531,9 +531,7 @@ void SecondDeviceAuthBroker::FetchChallengeBytes(
|
|||||||
/*post_data=*/kGetChallengeDataRequest,
|
/*post_data=*/kGetChallengeDataRequest,
|
||||||
/*headers=*/std::vector<std::string>(),
|
/*headers=*/std::vector<std::string>(),
|
||||||
/*cors_exempt_headers=*/std::vector<std::string>(),
|
/*cors_exempt_headers=*/std::vector<std::string>(),
|
||||||
/*annotation_tag=*/kChallengeDataAnnotation,
|
/*annotation_tag=*/kChallengeDataAnnotation, chrome::GetChannel());
|
||||||
/*is_stable_channel=*/chrome::GetChannel() ==
|
|
||||||
version_info::Channel::STABLE);
|
|
||||||
|
|
||||||
metrics_.RecordChallengeBytesRequested();
|
metrics_.RecordChallengeBytesRequested();
|
||||||
endpoint_fetcher_->PerformRequest(
|
endpoint_fetcher_->PerformRequest(
|
||||||
@ -592,9 +590,7 @@ void SecondDeviceAuthBroker::FetchAuthCode(
|
|||||||
CreateStartSessionRequestData(fido_assertion_info, certificate),
|
CreateStartSessionRequestData(fido_assertion_info, certificate),
|
||||||
/*headers=*/std::vector<std::string>(),
|
/*headers=*/std::vector<std::string>(),
|
||||||
/*cors_exempt_headers=*/std::vector<std::string>(),
|
/*cors_exempt_headers=*/std::vector<std::string>(),
|
||||||
/*annotation_tag=*/kStartSessionAnnotation,
|
/*annotation_tag=*/kStartSessionAnnotation, chrome::GetChannel());
|
||||||
/*is_stable_channel=*/chrome::GetChannel() ==
|
|
||||||
version_info::Channel::STABLE);
|
|
||||||
|
|
||||||
metrics_.RecordGaiaAuthenticationStarted();
|
metrics_.RecordGaiaAuthenticationStarted();
|
||||||
endpoint_fetcher_->PerformRequest(
|
endpoint_fetcher_->PerformRequest(
|
||||||
|
@ -199,10 +199,7 @@ FeedServiceFactory::BuildServiceInstanceForBrowserContext(
|
|||||||
IdentityManagerFactory::GetForProfile(profile);
|
IdentityManagerFactory::GetForProfile(profile);
|
||||||
std::string api_key;
|
std::string api_key;
|
||||||
if (google_apis::IsGoogleChromeAPIKeyUsed()) {
|
if (google_apis::IsGoogleChromeAPIKeyUsed()) {
|
||||||
bool is_stable_channel =
|
api_key = google_apis::GetAPIKey(chrome::GetChannel());
|
||||||
chrome::GetChannel() == version_info::Channel::STABLE;
|
|
||||||
api_key = is_stable_channel ? google_apis::GetAPIKey()
|
|
||||||
: google_apis::GetNonStableAPIKey();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
scoped_refptr<base::SequencedTaskRunner> background_task_runner =
|
scoped_refptr<base::SequencedTaskRunner> background_task_runner =
|
||||||
|
@ -38,16 +38,6 @@
|
|||||||
#include "net/third_party/quiche/src/quiche/blind_sign_auth/proto/blind_sign_auth_options.pb.h"
|
#include "net/third_party/quiche/src/quiche/blind_sign_auth/proto/blind_sign_auth_options.pb.h"
|
||||||
#include "net/third_party/quiche/src/quiche/blind_sign_auth/proto/spend_token_data.pb.h"
|
#include "net/third_party/quiche/src/quiche/blind_sign_auth/proto/spend_token_data.pb.h"
|
||||||
|
|
||||||
namespace {
|
|
||||||
// TODO(crbug.com/40216037): Once `google_apis::GetAPIKey()` handles this
|
|
||||||
// logic we can remove this helper.
|
|
||||||
std::string GetAPIKey() {
|
|
||||||
return chrome::GetChannel() == version_info::Channel::STABLE
|
|
||||||
? google_apis::GetAPIKey()
|
|
||||||
: google_apis::GetNonStableAPIKey();
|
|
||||||
}
|
|
||||||
} // namespace
|
|
||||||
|
|
||||||
IpProtectionConfigProvider::IpProtectionConfigProvider(
|
IpProtectionConfigProvider::IpProtectionConfigProvider(
|
||||||
signin::IdentityManager* identity_manager,
|
signin::IdentityManager* identity_manager,
|
||||||
privacy_sandbox::TrackingProtectionSettings* tracking_protection_settings,
|
privacy_sandbox::TrackingProtectionSettings* tracking_protection_settings,
|
||||||
@ -79,7 +69,7 @@ void IpProtectionConfigProvider::SetUp() {
|
|||||||
std::make_unique<ip_protection::IpProtectionProxyConfigFetcher>(
|
std::make_unique<ip_protection::IpProtectionProxyConfigFetcher>(
|
||||||
url_loader_factory_.get(),
|
url_loader_factory_.get(),
|
||||||
ip_protection::IpProtectionConfigProviderHelper::kChromeIpBlinding,
|
ip_protection::IpProtectionConfigProviderHelper::kChromeIpBlinding,
|
||||||
GetAPIKey());
|
google_apis::GetAPIKey(chrome::GetChannel()));
|
||||||
}
|
}
|
||||||
if (!bsa_) {
|
if (!bsa_) {
|
||||||
if (!blind_sign_auth_) {
|
if (!blind_sign_auth_) {
|
||||||
|
@ -35,16 +35,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace query_tiles {
|
namespace query_tiles {
|
||||||
namespace {
|
|
||||||
|
|
||||||
std::string GetGoogleAPIKey() {
|
|
||||||
bool is_stable_channel =
|
|
||||||
chrome::GetChannel() == version_info::Channel::STABLE;
|
|
||||||
return is_stable_channel ? google_apis::GetAPIKey()
|
|
||||||
: google_apis::GetNonStableAPIKey();
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace
|
|
||||||
|
|
||||||
// static
|
// static
|
||||||
TileServiceFactory* TileServiceFactory::GetInstance() {
|
TileServiceFactory* TileServiceFactory::GetInstance() {
|
||||||
@ -105,11 +95,12 @@ std::unique_ptr<KeyedService> TileServiceFactory::BuildServiceInstanceFor(
|
|||||||
default_server_url =
|
default_server_url =
|
||||||
base::android::ConvertJavaStringToUTF8(env, j_server_url);
|
base::android::ConvertJavaStringToUTF8(env, j_server_url);
|
||||||
#endif
|
#endif
|
||||||
return CreateTileService(image_fetcher_service, db_provider, storage_dir,
|
return CreateTileService(
|
||||||
background_task_scheduler, accept_languanges,
|
image_fetcher_service, db_provider, storage_dir,
|
||||||
GetCountryCode(), GetGoogleAPIKey(), client_version,
|
background_task_scheduler, accept_languanges, GetCountryCode(),
|
||||||
default_server_url, url_loader_factory,
|
google_apis::GetAPIKey(chrome::GetChannel()), client_version,
|
||||||
ProfileKey::FromSimpleFactoryKey(key)->GetPrefs());
|
default_server_url, url_loader_factory,
|
||||||
|
ProfileKey::FromSimpleFactoryKey(key)->GetPrefs());
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace query_tiles
|
} // namespace query_tiles
|
||||||
|
@ -796,9 +796,7 @@ void LensOverlayQueryController::FetchEndpoint(
|
|||||||
/*post_data=*/request_data_string,
|
/*post_data=*/request_data_string,
|
||||||
/*headers=*/headers,
|
/*headers=*/headers,
|
||||||
/*cors_exempt_headers=*/cors_exempt_headers,
|
/*cors_exempt_headers=*/cors_exempt_headers,
|
||||||
/*annotation_tag=*/kTrafficAnnotationTag,
|
/*annotation_tag=*/kTrafficAnnotationTag, chrome::GetChannel());
|
||||||
/*is_stable_channel=*/chrome::GetChannel() ==
|
|
||||||
version_info::Channel::STABLE);
|
|
||||||
EndpointFetcher* fetcher = endpoint_fetcher.get();
|
EndpointFetcher* fetcher = endpoint_fetcher.get();
|
||||||
base::SequencedTaskRunner::GetCurrentDefault()->PostTask(
|
base::SequencedTaskRunner::GetCurrentDefault()->PostTask(
|
||||||
FROM_HERE, base::BindOnce(std::move(fetcher_created_callback),
|
FROM_HERE, base::BindOnce(std::move(fetcher_created_callback),
|
||||||
|
@ -97,9 +97,7 @@ std::unique_ptr<EndpointFetcher> CreateEndpointFetcher(
|
|||||||
/*post_data=*/"",
|
/*post_data=*/"",
|
||||||
/*headers=*/std::vector<std::string>(),
|
/*headers=*/std::vector<std::string>(),
|
||||||
/*cors_exempt_headers=*/std::vector<std::string>(),
|
/*cors_exempt_headers=*/std::vector<std::string>(),
|
||||||
/*annotation_tag=*/annotation_tag,
|
/*annotation_tag=*/annotation_tag, chrome::GetChannel());
|
||||||
/*is_stable_channel=*/chrome::GetChannel() ==
|
|
||||||
version_info::Channel::STABLE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const base::Value::List* FindList(
|
const base::Value::List* FindList(
|
||||||
|
@ -567,10 +567,7 @@ std::string GetAPIKeyForUrl(version_info::Channel channel) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get the API key from Chrome baked keys.
|
// Get the API key from Chrome baked keys.
|
||||||
if (channel == version_info::Channel::STABLE) {
|
return google_apis::GetAPIKey(channel);
|
||||||
return google_apis::GetAPIKey();
|
|
||||||
}
|
|
||||||
return google_apis::GetNonStableAPIKey();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<std::vector<variations::VariationID>>& GetActiveExperiments() {
|
std::optional<std::vector<variations::VariationID>>& GetActiveExperiments() {
|
||||||
|
@ -15,6 +15,7 @@ source_set("endpoint_fetcher") {
|
|||||||
"//components/signin/public/identity_manager",
|
"//components/signin/public/identity_manager",
|
||||||
"//components/version_info:channel",
|
"//components/version_info:channel",
|
||||||
"//google_apis",
|
"//google_apis",
|
||||||
|
"//google_apis/common",
|
||||||
"//net",
|
"//net",
|
||||||
"//services/data_decoder/public/cpp",
|
"//services/data_decoder/public/cpp",
|
||||||
"//services/network/public/cpp",
|
"//services/network/public/cpp",
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
#include "components/signin/public/identity_manager/access_token_info.h"
|
#include "components/signin/public/identity_manager/access_token_info.h"
|
||||||
#include "components/signin/public/identity_manager/identity_manager.h"
|
#include "components/signin/public/identity_manager/identity_manager.h"
|
||||||
#include "components/version_info/channel.h"
|
#include "components/version_info/channel.h"
|
||||||
|
#include "google_apis/common/api_key_request_util.h"
|
||||||
#include "google_apis/gaia/gaia_urls.h"
|
#include "google_apis/gaia/gaia_urls.h"
|
||||||
#include "google_apis/google_api_keys.h"
|
#include "google_apis/google_api_keys.h"
|
||||||
#include "net/http/http_status_code.h"
|
#include "net/http/http_status_code.h"
|
||||||
@ -60,7 +61,7 @@ EndpointFetcher::EndpointFetcher(
|
|||||||
const std::vector<std::string>& headers,
|
const std::vector<std::string>& headers,
|
||||||
const std::vector<std::string>& cors_exempt_headers,
|
const std::vector<std::string>& cors_exempt_headers,
|
||||||
const net::NetworkTrafficAnnotationTag& annotation_tag,
|
const net::NetworkTrafficAnnotationTag& annotation_tag,
|
||||||
bool is_stable_channel)
|
version_info::Channel channel)
|
||||||
: auth_type_(CHROME_API_KEY),
|
: auth_type_(CHROME_API_KEY),
|
||||||
url_(url),
|
url_(url),
|
||||||
http_method_(http_method),
|
http_method_(http_method),
|
||||||
@ -74,7 +75,7 @@ EndpointFetcher::EndpointFetcher(
|
|||||||
identity_manager_(nullptr),
|
identity_manager_(nullptr),
|
||||||
consent_level_(std::nullopt),
|
consent_level_(std::nullopt),
|
||||||
sanitize_response_(true),
|
sanitize_response_(true),
|
||||||
is_stable_channel_(is_stable_channel) {}
|
channel_(channel) {}
|
||||||
|
|
||||||
EndpointFetcher::EndpointFetcher(
|
EndpointFetcher::EndpointFetcher(
|
||||||
const scoped_refptr<network::SharedURLLoaderFactory>& url_loader_factory,
|
const scoped_refptr<network::SharedURLLoaderFactory>& url_loader_factory,
|
||||||
@ -233,10 +234,7 @@ void EndpointFetcher::PerformRequest(
|
|||||||
base::StringPrintf("Bearer %s", key));
|
base::StringPrintf("Bearer %s", key));
|
||||||
break;
|
break;
|
||||||
case CHROME_API_KEY: {
|
case CHROME_API_KEY: {
|
||||||
std::string api_key = is_stable_channel_
|
google_apis::AddDefaultAPIKeyToRequest(*resource_request, channel_);
|
||||||
? google_apis::GetAPIKey()
|
|
||||||
: google_apis::GetNonStableAPIKey();
|
|
||||||
resource_request->headers.SetHeader("x-goog-api-key", api_key);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
@ -32,6 +32,10 @@ struct AccessTokenInfo;
|
|||||||
class IdentityManager;
|
class IdentityManager;
|
||||||
} // namespace signin
|
} // namespace signin
|
||||||
|
|
||||||
|
namespace version_info {
|
||||||
|
enum class Channel;
|
||||||
|
}
|
||||||
|
|
||||||
class GoogleServiceAuthError;
|
class GoogleServiceAuthError;
|
||||||
class GURL;
|
class GURL;
|
||||||
|
|
||||||
@ -91,7 +95,7 @@ class EndpointFetcher {
|
|||||||
const std::vector<std::string>& headers,
|
const std::vector<std::string>& headers,
|
||||||
const std::vector<std::string>& cors_exempt_headers,
|
const std::vector<std::string>& cors_exempt_headers,
|
||||||
const net::NetworkTrafficAnnotationTag& annotation_tag,
|
const net::NetworkTrafficAnnotationTag& annotation_tag,
|
||||||
bool is_stable_channel);
|
version_info::Channel channel);
|
||||||
|
|
||||||
// Constructor if no authentication is needed.
|
// Constructor if no authentication is needed.
|
||||||
EndpointFetcher(
|
EndpointFetcher(
|
||||||
@ -181,7 +185,7 @@ class EndpointFetcher {
|
|||||||
// null if `identity_manager_` is null.
|
// null if `identity_manager_` is null.
|
||||||
const std::optional<signin::ConsentLevel> consent_level_;
|
const std::optional<signin::ConsentLevel> consent_level_;
|
||||||
bool sanitize_response_;
|
bool sanitize_response_;
|
||||||
bool is_stable_channel_;
|
version_info::Channel channel_;
|
||||||
|
|
||||||
// Members set in Fetch
|
// Members set in Fetch
|
||||||
std::unique_ptr<const signin::PrimaryAccountAccessTokenFetcher>
|
std::unique_ptr<const signin::PrimaryAccountAccessTokenFetcher>
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#include "components/manta/base_provider.h"
|
#include "components/manta/base_provider.h"
|
||||||
|
|
||||||
#include "base/containers/fixed_flat_map.h"
|
#include "base/containers/fixed_flat_map.h"
|
||||||
|
#include "base/version_info/channel.h"
|
||||||
#include "components/manta/proto/manta.pb.h"
|
#include "components/manta/proto/manta.pb.h"
|
||||||
|
|
||||||
namespace manta {
|
namespace manta {
|
||||||
@ -157,7 +158,7 @@ std::unique_ptr<EndpointFetcher> BaseProvider::CreateEndpointFetcherForDemoMode(
|
|||||||
/*cors_exempt_headers=*/std::vector<std::string>(),
|
/*cors_exempt_headers=*/std::vector<std::string>(),
|
||||||
/*annotation_tag=*/annotation_tag,
|
/*annotation_tag=*/annotation_tag,
|
||||||
// ChromeOS always uses the stable channel API key
|
// ChromeOS always uses the stable channel API key
|
||||||
/*is_stable_channel=*/true);
|
version_info::Channel::STABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace manta
|
} // namespace manta
|
||||||
|
@ -25,12 +25,7 @@ std::optional<std::string> GetAPIKey(bool signed_in_user,
|
|||||||
if (signed_in_user) {
|
if (signed_in_user) {
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
return google_apis::GetAPIKey(channel);
|
||||||
if (channel == version_info::Channel::STABLE) {
|
|
||||||
return google_apis::GetAPIKey();
|
|
||||||
}
|
|
||||||
|
|
||||||
return google_apis::GetNonStableAPIKey();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
@ -393,18 +393,15 @@ bool HasAPIKeyConfigured() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string GetAPIKey(::version_info::Channel channel) {
|
std::string GetAPIKey(::version_info::Channel channel) {
|
||||||
return channel == ::version_info::Channel::STABLE ? GetAPIKey()
|
return channel == ::version_info::Channel::STABLE
|
||||||
: GetNonStableAPIKey();
|
? GetAPIKey()
|
||||||
|
: g_api_key_cache.Get().api_key_non_stable();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetAPIKey() {
|
std::string GetAPIKey() {
|
||||||
return g_api_key_cache.Get().api_key();
|
return g_api_key_cache.Get().api_key();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetNonStableAPIKey() {
|
|
||||||
return g_api_key_cache.Get().api_key_non_stable();
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetRemotingAPIKey() {
|
std::string GetRemotingAPIKey() {
|
||||||
return g_api_key_cache.Get().api_key_remoting();
|
return g_api_key_cache.Get().api_key_remoting();
|
||||||
}
|
}
|
||||||
|
@ -89,12 +89,6 @@ std::string GetAPIKey(version_info::Channel channel);
|
|||||||
// distribution channel instead of calling this function directly.
|
// distribution channel instead of calling this function directly.
|
||||||
COMPONENT_EXPORT(GOOGLE_APIS) std::string GetAPIKey();
|
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.
|
// Retrieves the Chrome Remote Desktop API key.
|
||||||
COMPONENT_EXPORT(GOOGLE_APIS) std::string GetRemotingAPIKey();
|
COMPONENT_EXPORT(GOOGLE_APIS) std::string GetRemotingAPIKey();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user