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

Side by Side Diff: google_apis/google_api_keys.cc

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « google_apis/google_api_keys.h ('k') | google_apis/google_apis.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « google_apis/google_api_keys.h ('k') | google_apis/google_apis.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698