Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Unified Diff: google_apis/google_api_keys.cc

Issue 635013003: Expose data reduction proxy auth token for internal builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to head Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « google_apis/google_api_keys.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/google_api_keys.cc
diff --git a/google_apis/google_api_keys.cc b/google_apis/google_api_keys.cc
index f879979bc78a49baafabf0ac192f96bb68c95ea0..fc8484a676e8619adac6baa71386a77158033ccd 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;
« no previous file with comments | « google_apis/google_api_keys.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698