Chromium Code Reviews| Index: chrome/browser/ui/sync/one_click_signin_helper.h |
| =================================================================== |
| --- chrome/browser/ui/sync/one_click_signin_helper.h (revision 142386) |
| +++ chrome/browser/ui/sync/one_click_signin_helper.h (working copy) |
| @@ -7,6 +7,8 @@ |
| #pragma once |
| #include <string> |
| +#include <utility> |
| +#include <vector> |
|
Roger Tawa OOO till Jul 10th
2012/06/15 17:56:00
remove these new headers, not needed here.
Mathieu
2012/06/21 13:13:00
Done.
|
| #include "content/public/browser/web_contents_observer.h" |
| @@ -28,9 +30,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, |