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

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

Issue 10555005: Address bug where the one-click sign-in bar would never show again once (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Merge Created 8 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 | « chrome/browser/signin/signin_manager_factory.cc ('k') | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | 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.h
===================================================================
--- chrome/browser/ui/sync/one_click_signin_helper.h (revision 148749)
+++ chrome/browser/ui/sync/one_click_signin_helper.h (working copy)
@@ -27,9 +27,11 @@
// Returns true if the one-click signin feature can be offered at this time.
// It can be offered if the contents is not in an incognito window. If
// |check_connected| is true, then the profile is checked to see if it's
- // already connected to a google account, in which case a one click signin
+ // already connected to a google account or if the user has already rejected
+ // one-click sign-in with this email, in which cases a one click signin
// should not be offered.
static bool CanOffer(content::WebContents* web_contents,
+ const std::string& email,
bool check_connected);
// Looks for the Google-Accounts-SignIn response header, and if found,
« no previous file with comments | « chrome/browser/signin/signin_manager_factory.cc ('k') | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698