diff options
author | tnagel <tnagel@chromium.org> | 2014-11-24 03:32:58 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-24 11:33:17 +0000 |
commit | 13c88c66f60e6364478a411e8ccf0bfd689f0a96 (patch) | |
tree | 32567a01ee3f4d803875a649b08f63bdf483ff62 /google_apis | |
parent | 2ee5f146d57d07bbad3804715e06590b850711f9 (diff) | |
download | chromium_src-13c88c66f60e6364478a411e8ccf0bfd689f0a96.zip chromium_src-13c88c66f60e6364478a411e8ccf0bfd689f0a96.tar.gz chromium_src-13c88c66f60e6364478a411e8ccf0bfd689f0a96.tar.bz2 |
Revert of Supervised user SafeSites: Expose & use API key from src-internal (patchset #5 id:80001 of https://codereview.chromium.org/690423003/)
Reason for revert:
Build breakage on Mac:
https://build.chromium.org/p/chromium.mac/builders/Mac%20Builder/builds/14318/steps/steps/logs/stdio
Original issue's description:
> Supervised user SafeSites: Expose & use API key from src-internal
>
> Key was added to src-internal in https://chromereviews.googleplex.com/113767014/
>
> BUG=417722
>
> Committed: https://crrev.com/2ee5f146d57d07bbad3804715e06590b850711f9
> Cr-Commit-Position: refs/heads/master@{#305412}
TBR=rogerta@chromium.org,bauerb@chromium.org,treib@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=417722
Review URL: https://codereview.chromium.org/753683004
Cr-Commit-Position: refs/heads/master@{#305413}
Diffstat (limited to 'google_apis')
-rw-r--r-- | google_apis/google_api_keys.cc | 18 | ||||
-rw-r--r-- | google_apis/google_api_keys.h | 2 |
2 files changed, 0 insertions, 20 deletions
diff --git a/google_apis/google_api_keys.cc b/google_apis/google_api_keys.cc index 60f0b30..640b2ad 100644 --- a/google_apis/google_api_keys.cc +++ b/google_apis/google_api_keys.cc @@ -26,10 +26,6 @@ #define GOOGLE_API_KEY DUMMY_API_TOKEN #endif -#if !defined(GOOGLE_API_KEY_SAFESITES) -#define GOOGLE_API_KEY_SAFESITES DUMMY_API_TOKEN -#endif - #if !defined(GOOGLE_CLIENT_ID_MAIN) #define GOOGLE_CLIENT_ID_MAIN DUMMY_API_TOKEN #endif @@ -90,14 +86,6 @@ class APIKeyCache { environment.get(), command_line); - api_key_safesites_ = - CalculateKeyValue(GOOGLE_API_KEY_SAFESITES, - STRINGIZE_NO_EXPANSION(GOOGLE_API_KEY_SAFESITES), - NULL, - std::string(), - environment.get(), - command_line); - std::string default_client_id = CalculateKeyValue(GOOGLE_DEFAULT_CLIENT_ID, STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), @@ -181,7 +169,6 @@ class APIKeyCache { } std::string api_key() const { return api_key_; } - std::string api_key_safesites() const { return api_key_safesites_; } std::string GetClientID(OAuth2Client client) const { DCHECK_LT(client, CLIENT_NUM_ITEMS); @@ -247,7 +234,6 @@ class APIKeyCache { } std::string api_key_; - std::string api_key_safesites_; std::string client_ids_[CLIENT_NUM_ITEMS]; std::string client_secrets_[CLIENT_NUM_ITEMS]; }; @@ -274,10 +260,6 @@ std::string GetAPIKey() { return g_api_key_cache.Get().api_key(); } -std::string GetSafeSitesAPIKey() { - return g_api_key_cache.Get().api_key_safesites(); -} - std::string GetOAuth2ClientID(OAuth2Client client) { return g_api_key_cache.Get().GetClientID(client); } diff --git a/google_apis/google_api_keys.h b/google_apis/google_api_keys.h index 9650593..b2399bf 100644 --- a/google_apis/google_api_keys.h +++ b/google_apis/google_api_keys.h @@ -66,8 +66,6 @@ bool HasKeysConfigured(); // e.g. URL-escaped if you use it in a URL. std::string GetAPIKey(); -std::string GetSafeSitesAPIKey(); - // Represents the different sets of client IDs and secrets in use. enum OAuth2Client { CLIENT_MAIN, // Several different features use this. |