Chromium Code Reviews| Index: chrome/browser/signin/signin_promo.h |
| diff --git a/chrome/browser/signin/signin_promo.h b/chrome/browser/signin/signin_promo.h |
| index 055af1c05941aa2b612df70faaf2ac8abde8ff94..56f722481b4016d565511e56dcf70fd641e27a43 100644 |
| --- a/chrome/browser/signin/signin_promo.h |
| +++ b/chrome/browser/signin/signin_promo.h |
| @@ -22,6 +22,7 @@ namespace signin { |
| const char kSignInPromoQueryKeyAutoClose[] = "auto_close"; |
| const char kSignInPromoQueryKeyContinue[] = "continue"; |
| +const char kSignInPromoQueryKeyProfileIndex[] = "pi"; |
| const char kSignInPromoQueryKeySource[] = "source"; |
| const char kSignInPromoQueryKeyConstrained[] = "constrained"; |
| const char kSignInPromoQueryKeyShowAccountManagement[] = |
| @@ -58,9 +59,19 @@ GURL GetPromoURL(signin_metrics::Source source, |
| // Returns a sign in promo URL specifically for reauthenticating |account_id|. |
| GURL GetReauthURL(Profile* profile, const std::string& account_id); |
| +// Returns a sign in promo URL specifically for reauthenticating |email|. |
| +// |profile_index| indicates the profile being reauth in the URL, which can |
| +// be extracted via GetProfileIndexForPromoURL(). Use std::string::npos to |
| +// not specify an index. |
| +GURL GetReauthURL(size_t profile_index, const std::string& email); |
|
bcwhite
2015/07/21 13:28:39
These two methods are keyed based on the second pa
Roger Tawa OOO till Jul 10th
2015/07/22 00:12:32
Renamed new method. I don't want to change the si
|
| + |
| // Gets the next page URL from the query portion of the sign in promo URL. |
| GURL GetNextPageURLForPromoURL(const GURL& url); |
| +// Gets the profile index encoded in the URL. Returns std::string::npos if |
| +// none exsts. |
| +size_t GetProfileIndexForPromoURL(const GURL& url); |
| + |
| // Gets the partition URL for the embedded sign in frame/webview. |
| GURL GetSigninPartitionURL(); |