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

Unified Diff: chrome/browser/ui/sync/one_click_signin_helper.cc

Issue 14759008: Making the condition for showing signin in one click case more general. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/sync/one_click_signin_helper.cc
diff --git a/chrome/browser/ui/sync/one_click_signin_helper.cc b/chrome/browser/ui/sync/one_click_signin_helper.cc
index 3891458ac6285e26cb4c26b6caf5f4ff9194c315..6a7cff7f62ba33dbcec10e5f476fa8e24af00553 100644
--- a/chrome/browser/ui/sync/one_click_signin_helper.cc
+++ b/chrome/browser/ui/sync/one_click_signin_helper.cc
@@ -316,7 +316,8 @@ bool AreWeShowingSignin(GURL url, SyncPromoUI::Source source,
return (url.ReplaceComponents(replacements) == clean_login_url &&
source != SyncPromoUI::SOURCE_UNKNOWN) ||
- (url.ReplaceComponents(replacements) == clean_one_click_url &&
+ (IsValidGaiaSigninRedirectOrResponseURL(url) &&
+ url.spec().find("ChromeLoginPrompt") != std::string::npos &&
!email.empty());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698