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

Unified Diff: google_apis/google_api_keys.cc

Issue 10941034: Adding unit tests for google_api_keys functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
Index: google_apis/google_api_keys.cc
diff --git a/google_apis/google_api_keys.cc b/google_apis/google_api_keys.cc
index 70d0a1272e0d2464d38f9fd9463745f7a9eaee75..830a135d95931a2a5d6983c6d780773048c1114c 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();
}

Powered by Google App Engine
This is Rietveld 408576698