Chromium Code Reviews| Index: chrome/browser/ui/sync/one_click_signin_helper.h |
| =================================================================== |
| --- chrome/browser/ui/sync/one_click_signin_helper.h (revision 144169) |
| +++ 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/27 21:17:08
are these two includes needed here? It seems not.
mathp
2012/06/29 13:44:00
Done. Lint seemed to think so. Apparently not!
|
| #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, |