Index: chrome/browser/ui/sync/one_click_signin_helper.h |
diff --git a/chrome/browser/ui/sync/one_click_signin_helper.h b/chrome/browser/ui/sync/one_click_signin_helper.h |
index 46f7765b4d0da8c8df72b61d7d53220f16383ec8..5ab7595ad80fd57ff0558cff2f6f5893a78fdec8 100644 |
--- a/chrome/browser/ui/sync/one_click_signin_helper.h |
+++ b/chrome/browser/ui/sync/one_click_signin_helper.h |
@@ -19,6 +19,7 @@ |
class Browser; |
class GURL; |
+class PasswordManager; |
class ProfileIOData; |
namespace content { |
@@ -78,6 +79,10 @@ class OneClickSigninHelper |
CAN_OFFER_FOR_INTERSTITAL_ONLY |
}; |
+ static void CreateForWebContentsWithPasswordManager( |
+ content::WebContents* contents, |
+ PasswordManager* password_manager); |
+ |
virtual ~OneClickSigninHelper(); |
// Returns true if the one-click signin feature can be offered at this time. |
@@ -166,7 +171,8 @@ class OneClickSigninHelper |
// SAML-based accounts, but causes bug crbug.com/181163. |
static const int kMaxNavigationsSince; |
- explicit OneClickSigninHelper(content::WebContents* web_contents); |
+ OneClickSigninHelper(content::WebContents* web_contents, |
+ PasswordManager* password_manager); |
// Returns true if the one-click signin feature can be offered at this time. |
// It can be offered if the io_data is not in an incognito window and if the |
@@ -208,11 +214,10 @@ class OneClickSigninHelper |
// TestingProfile provides. |
void SetDoNotClearPendingEmailForTesting(); |
- // Grab Gaia password if available. |
- bool OnFormSubmitted(const content::PasswordForm& form); |
+ // Called when password has been submitted. |
+ void PasswordSubmitted(const content::PasswordForm& form); |
// content::WebContentsObserver overrides. |
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
virtual void NavigateToPendingEntry( |
const GURL& url, |
content::NavigationController::ReloadType reload_type) OVERRIDE; |