summaryrefslogtreecommitdiffstats
path: root/google_apis/google_api_keys.cc
diff options
context:
space:
mode:
authorkundaji <kundaji@chromium.org>2014-10-15 12:11:08 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-15 19:11:31 +0000
commit033fb6ec8e164d0ee17da4b575dc103785cb4722 (patch)
treec33df8f6e669e2c5b762a87bd93c4db741dbfee0 /google_apis/google_api_keys.cc
parente8c29d4eefa54e7e71f4f2284a0903775ef25505 (diff)
downloadchromium_src-033fb6ec8e164d0ee17da4b575dc103785cb4722.zip
chromium_src-033fb6ec8e164d0ee17da4b575dc103785cb4722.tar.gz
chromium_src-033fb6ec8e164d0ee17da4b575dc103785cb4722.tar.bz2
Expose data reduction proxy auth token for internal builds.
Provide a method in google_api_keys to expose data reduction proxy auth token to non-mobile builds. BUG=412884 Review URL: https://codereview.chromium.org/635013003 Cr-Commit-Position: refs/heads/master@{#299736}
Diffstat (limited to 'google_apis/google_api_keys.cc')
-rw-r--r--google_apis/google_api_keys.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/google_apis/google_api_keys.cc b/google_apis/google_api_keys.cc
index f879979..fc8484a 100644
--- a/google_apis/google_api_keys.cc
+++ b/google_apis/google_api_keys.cc
@@ -180,6 +180,13 @@ class APIKeyCache {
return client_secrets_[client];
}
+ std::string GetSpdyProxyAuthValue() {
+#if defined(SPDY_PROXY_AUTH_VALUE)
+ return SPDY_PROXY_AUTH_VALUE;
+#endif
+ return std::string();
+ }
+
private:
// Gets a value for a key. In priority order, this will be the value
// provided via a command-line switch, the value provided via an
@@ -260,6 +267,10 @@ std::string GetOAuth2ClientSecret(OAuth2Client client) {
return g_api_key_cache.Get().GetClientSecret(client);
}
+std::string GetSpdyProxyAuthValue() {
+ return g_api_key_cache.Get().GetSpdyProxyAuthValue();
+}
+
bool IsGoogleChromeAPIKeyUsed() {
#if defined(GOOGLE_CHROME_BUILD) || defined(USE_OFFICIAL_GOOGLE_API_KEYS)
return true;