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 1a876fdf54ec84c32f8e6e612cd4912e4c150313..a58df4635c8107396d647223867b7ae41a385908 100644 |
--- a/chrome/browser/ui/sync/one_click_signin_helper.h |
+++ b/chrome/browser/ui/sync/one_click_signin_helper.h |
@@ -8,6 +8,7 @@ |
#include <string> |
#include "base/gtest_prod_util.h" |
+#include "chrome/browser/password_manager/password_manager.h" |
#include "chrome/browser/sync/profile_sync_service_observer.h" |
#include "chrome/browser/ui/sync/sync_promo_ui.h" |
#include "content/public/browser/navigation_controller.h" |
@@ -38,6 +39,7 @@ class URLRequest; |
class OneClickSigninHelper |
: public content::WebContentsObserver, |
public content::WebContentsUserData<OneClickSigninHelper>, |
+ public PasswordManager::SubmissionObserver, |
public ProfileSyncServiceObserver { |
public: |
// Represents user's decision about sign in process. |
@@ -76,6 +78,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 +168,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 +211,10 @@ class OneClickSigninHelper |
// TestingProfile provides. |
void SetDoNotClearPendingEmailForTesting(); |
- // Grab Gaia password if available. |
- bool OnFormSubmitted(const content::PasswordForm& form); |
+ // PasswordManager::SubmissionObserver |
+ virtual void PasswordSubmitted(const content::PasswordForm& form) OVERRIDE; |
// content::WebContentsObserver overrides. |
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
virtual void NavigateToPendingEntry( |
const GURL& url, |
content::NavigationController::ReloadType reload_type) OVERRIDE; |