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

Side by Side Diff: google_apis/gaia/gaia_urls.cc

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 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 unified diff | Download patch | Annotate | Revision Log
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 "google_apis/gaia/gaia_urls.h" 5 #include "google_apis/gaia/gaia_urls.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "google_apis/gaia/gaia_switches.h" 9 #include "google_apis/gaia/gaia_switches.h"
10 #include "google_apis/google_api_keys.h" 10 #include "google_apis/google_api_keys.h"
(...skipping 22 matching lines...) Expand all
33 const char kOAuth1LoginScope[] = "https://www.google.com/accounts/OAuthLogin"; 33 const char kOAuth1LoginScope[] = "https://www.google.com/accounts/OAuthLogin";
34 const char kOAuthWrapBridgeUserInfoScope[] = 34 const char kOAuthWrapBridgeUserInfoScope[] =
35 "https://www.googleapis.com/auth/userinfo.email"; 35 "https://www.googleapis.com/auth/userinfo.email";
36 36
37 // API calls from accounts.google.com (LSO) 37 // API calls from accounts.google.com (LSO)
38 const char kGetOAuthTokenUrlSuffix[] = "o/oauth/GetOAuthToken/"; 38 const char kGetOAuthTokenUrlSuffix[] = "o/oauth/GetOAuthToken/";
39 const char kClientLoginToOAuth2UrlSuffix[] = "o/oauth2/programmatic_auth"; 39 const char kClientLoginToOAuth2UrlSuffix[] = "o/oauth2/programmatic_auth";
40 const char kOAuth2AuthUrlSuffix[] = "o/oauth2/auth"; 40 const char kOAuth2AuthUrlSuffix[] = "o/oauth2/auth";
41 const char kOAuth2RevokeUrlSuffix[] = "o/oauth2/revoke"; 41 const char kOAuth2RevokeUrlSuffix[] = "o/oauth2/revoke";
42 const char kOAuth2TokenUrlSuffix[] = "o/oauth2/token"; 42 const char kOAuth2TokenUrlSuffix[] = "o/oauth2/token";
43 const char kClientOAuthUrlSuffix[] = "ClientOAuth";
44 43
45 // API calls from www.googleapis.com 44 // API calls from www.googleapis.com
46 const char kOAuth2IssueTokenUrlSuffix[] = "oauth2/v2/IssueToken"; 45 const char kOAuth2IssueTokenUrlSuffix[] = "oauth2/v2/IssueToken";
47 const char kOAuth2TokenInfoUrlSuffix[] = "oauth2/v2/tokeninfo"; 46 const char kOAuth2TokenInfoUrlSuffix[] = "oauth2/v2/tokeninfo";
48 const char kOAuthUserInfoUrlSuffix[] = "oauth2/v1/userinfo"; 47 const char kOAuthUserInfoUrlSuffix[] = "oauth2/v1/userinfo";
49 48
50 void GetSwitchValueWithDefault(const char* switch_value, 49 void GetSwitchValueWithDefault(const char* switch_value,
51 const char* default_value, 50 const char* default_value,
52 std::string* output_value) { 51 std::string* output_value) {
53 CommandLine* command_line = CommandLine::ForCurrentProcess(); 52 CommandLine* command_line = CommandLine::ForCurrentProcess();
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 return oauth2_token_info_url_; 234 return oauth2_token_info_url_;
236 } 235 }
237 236
238 const GURL& GaiaUrls::oauth2_revoke_url() const { 237 const GURL& GaiaUrls::oauth2_revoke_url() const {
239 return oauth2_revoke_url_; 238 return oauth2_revoke_url_;
240 } 239 }
241 240
242 const GURL& GaiaUrls::gaia_login_form_realm() const { 241 const GURL& GaiaUrls::gaia_login_form_realm() const {
243 return gaia_url_; 242 return gaia_url_;
244 } 243 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698