| Index: google_apis/google_api_keys.cc
|
| diff --git a/google_apis/google_api_keys.cc b/google_apis/google_api_keys.cc
|
| index fc4b54735b44042eb79c7845028b37020491ac63..0baf00dc3936c95abc7893c786a1413dd4fd49e6 100644
|
| --- a/google_apis/google_api_keys.cc
|
| +++ b/google_apis/google_api_keys.cc
|
| @@ -49,6 +49,14 @@
|
| #define GOOGLE_CLIENT_SECRET_REMOTING DUMMY_API_TOKEN
|
| #endif
|
|
|
| +#if !defined(GOOGLE_CLIENT_ID_REMOTING_HOST)
|
| +#define GOOGLE_CLIENT_ID_REMOTING_HOST DUMMY_API_TOKEN
|
| +#endif
|
| +
|
| +#if !defined(GOOGLE_CLIENT_SECRET_REMOTING_HOST)
|
| +#define GOOGLE_CLIENT_SECRET_REMOTING_HOST DUMMY_API_TOKEN
|
| +#endif
|
| +
|
| // These are used as shortcuts for developers and users providing
|
| // OAuth credentials via preprocessor defines or environment
|
| // variables. If set, they will be used to replace any of the client
|
| @@ -152,6 +160,21 @@ class APIKeyCache {
|
| default_client_secret,
|
| environment.get(),
|
| command_line);
|
| +
|
| + client_ids_[CLIENT_REMOTING_HOST] = CalculateKeyValue(
|
| + GOOGLE_CLIENT_ID_REMOTING_HOST,
|
| + STRINGIZE_NO_EXPANSION(GOOGLE_CLIENT_ID_REMOTING_HOST),
|
| + NULL,
|
| + default_client_id,
|
| + environment.get(),
|
| + command_line);
|
| + client_secrets_[CLIENT_REMOTING_HOST] = CalculateKeyValue(
|
| + GOOGLE_CLIENT_SECRET_REMOTING_HOST,
|
| + STRINGIZE_NO_EXPANSION(GOOGLE_CLIENT_SECRET_REMOTING_HOST),
|
| + NULL,
|
| + default_client_secret,
|
| + environment.get(),
|
| + command_line);
|
| }
|
|
|
| std::string api_key() const { return api_key_; }
|
|
|