diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-21 13:55:47 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-21 13:55:47 +0000 |
commit | 65eae708da5a5b8bb2fe52d0a15c83177daeb0d3 (patch) | |
tree | 338ba8ca1ccaf5236f44259c26b8e7f57f4171f8 /google_apis/google_api_keys.cc | |
parent | 01b23e8cd55e984c432eeba828e7b1bf63699472 (diff) | |
download | chromium_src-65eae708da5a5b8bb2fe52d0a15c83177daeb0d3.zip chromium_src-65eae708da5a5b8bb2fe52d0a15c83177daeb0d3.tar.gz chromium_src-65eae708da5a5b8bb2fe52d0a15c83177daeb0d3.tar.bz2 |
Adding unit tests for google_api_keys functionality.
TBR=ben@chromium.org
BUG=145584
Review URL: https://chromiumcodereview.appspot.com/10941034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis/google_api_keys.cc')
-rw-r--r-- | google_apis/google_api_keys.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/google_apis/google_api_keys.cc b/google_apis/google_api_keys.cc index 70d0a12..830a135 100644 --- a/google_apis/google_api_keys.cc +++ b/google_apis/google_api_keys.cc @@ -94,8 +94,6 @@ const char kOAuth2ClientSecret[] = "oauth2-client-secret"; namespace google_apis { -namespace { - // This is used as a lazy instance to determine keys once and cache them. class APIKeyCache { public: @@ -239,8 +237,6 @@ class APIKeyCache { static base::LazyInstance<APIKeyCache> g_api_key_cache = LAZY_INSTANCE_INITIALIZER; -} // namespace - std::string GetAPIKey() { return g_api_key_cache.Get().api_key(); } |