diff options
Diffstat (limited to 'google_apis')
-rw-r--r-- | google_apis/gaia/gaia_urls.cc | 6 | ||||
-rw-r--r-- | google_apis/gaia/gaia_urls.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/google_apis/gaia/gaia_urls.cc b/google_apis/gaia/gaia_urls.cc index 97020f0..053f7a3 100644 --- a/google_apis/gaia/gaia_urls.cc +++ b/google_apis/gaia/gaia_urls.cc @@ -30,6 +30,7 @@ const char kOAuth1LoginUrlSuffix[] = "OAuthLogin"; const char kOAuthRevokeTokenUrlSuffix[] = "AuthSubRevokeToken"; const char kListAccountsSuffix[] = "ListAccounts"; const char kEmbeddedSigninSuffix[] = "EmbeddedSignIn"; +const char kAddAccountSuffix[] = "AddSession"; // OAuth scopes const char kOAuth1LoginScope[] = "https://www.google.com/accounts/OAuthLogin"; @@ -107,6 +108,7 @@ GaiaUrls::GaiaUrls() { oauth1_login_url_ = gaia_url_.Resolve(kOAuth1LoginUrlSuffix); list_accounts_url_ = gaia_url_.Resolve(kListAccountsSuffix); embedded_signin_url_ = gaia_url_.Resolve(kEmbeddedSigninSuffix); + add_account_url_ = gaia_url_.Resolve(kAddAccountSuffix); // URLs from accounts.google.com (LSO). get_oauth_token_url_ = lso_origin_url_.Resolve(kGetOAuthTokenUrlSuffix); @@ -210,6 +212,10 @@ const GURL& GaiaUrls::embedded_signin_url() const { return embedded_signin_url_; } +const GURL& GaiaUrls::add_account_url() const { + return add_account_url_; +} + const std::string& GaiaUrls::oauth1_login_scope() const { return oauth1_login_scope_; } diff --git a/google_apis/gaia/gaia_urls.h b/google_apis/gaia/gaia_urls.h index a1bec87a..2ec6499 100644 --- a/google_apis/gaia/gaia_urls.h +++ b/google_apis/gaia/gaia_urls.h @@ -34,6 +34,7 @@ class GaiaUrls { const GURL& oauth1_login_url() const; const GURL& list_accounts_url() const; const GURL& embedded_signin_url() const; + const GURL& add_account_url() const; const std::string& oauth1_login_scope() const; const std::string& oauth_wrap_bridge_user_info_scope() const; @@ -77,6 +78,7 @@ class GaiaUrls { GURL oauth1_login_url_; GURL list_accounts_url_; GURL embedded_signin_url_; + GURL add_account_url_; std::string oauth1_login_scope_; std::string oauth_wrap_bridge_user_info_scope_; |