Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7987)

Unified Diff: chrome/browser/ui/sync/one_click_signin_helper.h

Issue 19705013: [password autofill] Remove references to PasswordForm from RenderViewImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698