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 f6eb5bec696c89b7a84570df498c04f02ec3879e..316a43349deb42cbc9e763a7e889fb57abe7459d 100644 |
--- a/chrome/browser/ui/sync/one_click_signin_helper.h |
+++ b/chrome/browser/ui/sync/one_click_signin_helper.h |
@@ -17,6 +17,7 @@ |
class Browser; |
class GURL; |
+class PasswordManager; |
class ProfileIOData; |
namespace content { |
@@ -76,6 +77,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. |
@@ -162,7 +167,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 |
@@ -204,11 +210,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; |