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

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: polish 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
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();
« no previous file with comments | « no previous file | chrome/browser/signin/signin_promo.cc » ('j') | chrome/browser/ui/views/profiles/user_manager_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698