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

Unified Diff: chrome/browser/signin/signin_promo.h

Issue 1220843003: Perform online reauth when password is changed for a locked profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/signin/signin_promo.cc » ('j') | chrome/browser/signin/signin_promo.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a0099aca84f2c5e44f835cc5160f2b40a91fa9f1 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 GetReauthURLWithEmail(size_t profile_index, const std::string& email);
+
// 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();
« no previous file with comments | « no previous file | chrome/browser/signin/signin_promo.cc » ('j') | chrome/browser/signin/signin_promo.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698