OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/net/google_apis/google_api_keys.h" | 5 #include "google_apis/google_api_keys.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/environment.h" | 8 #include "base/environment.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/stringize_macros.h" | 11 #include "base/stringize_macros.h" |
12 | 12 |
13 #if defined(GOOGLE_CHROME_BUILD) | 13 #if defined(GOOGLE_CHROME_BUILD) |
14 // TODO(joi): Include a src-internal file that defines the official | 14 // TODO(joi): Include a src-internal file that defines the official |
15 // keys for official builds, something like: #include | 15 // keys for official builds, something like: #include |
16 // "chrome/app/internal/official_google_api_keys.h" | 16 // "google_apis/internal/official_google_api_keys.h" |
17 #endif | 17 #endif |
18 | 18 |
19 #if !defined(GOOGLE_API_KEY) | 19 #if !defined(GOOGLE_API_KEY) |
20 // TODO(joi): This should be blank here, with the official key | 20 // TODO(joi): This should be blank here, with the official key |
21 // provided in official builds. | 21 // provided in official builds. |
22 #define GOOGLE_API_KEY "abcNOTREALKEYxyz" | 22 #define GOOGLE_API_KEY "abcNOTREALKEYxyz" |
23 #endif | 23 #endif |
24 | 24 |
25 #if !defined(GOOGLE_CLIENT_ID_MAIN) | 25 #if !defined(GOOGLE_CLIENT_ID_MAIN) |
26 // TODO(joi): This should be blank here, but provided in official | 26 // TODO(joi): This should be blank here, but provided in official |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 241 |
242 std::string GetOAuth2ClientID(OAuth2Client client) { | 242 std::string GetOAuth2ClientID(OAuth2Client client) { |
243 return g_api_key_cache.Get().GetClientID(client); | 243 return g_api_key_cache.Get().GetClientID(client); |
244 } | 244 } |
245 | 245 |
246 std::string GetOAuth2ClientSecret(OAuth2Client client) { | 246 std::string GetOAuth2ClientSecret(OAuth2Client client) { |
247 return g_api_key_cache.Get().GetClientSecret(client); | 247 return g_api_key_cache.Get().GetClientSecret(client); |
248 } | 248 } |
249 | 249 |
250 } // namespace google_apis | 250 } // namespace google_apis |
OLD | NEW |