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

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: Created 7 years, 4 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
« no previous file with comments | « chrome/browser/ui/browser_tab_contents.cc ('k') | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chrome/browser/ui/browser_tab_contents.cc ('k') | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698