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

Unified Diff: chrome/browser/password_manager/chrome_password_manager_client.cc

Issue 184103016: Autofill: Refactoring to support fetching password after a username is selected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actually fix compile failure. Created 6 years, 8 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/password_manager/chrome_password_manager_client.cc
diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b/chrome/browser/password_manager/chrome_password_manager_client.cc
index ed721657823aa0ce0f0d422e91e29c365c4f0267..67fd17aa721d8353c209f28f0cc9dd6c860909dd 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client.cc
+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
@@ -53,10 +53,23 @@ bool IsTheHotNewBubbleUIEnabled() {
DEFINE_WEB_CONTENTS_USER_DATA_KEY(ChromePasswordManagerClient);
+// static
+void
+ChromePasswordManagerClient::CreateForWebContentsWithAutofillManagerDelegate(
+ content::WebContents* contents,
+ autofill::AutofillManagerDelegate* delegate) {
+ if (FromWebContents(contents))
+ return;
+
+ contents->SetUserData(UserDataKey(),
+ new ChromePasswordManagerClient(contents, delegate));
+}
+
ChromePasswordManagerClient::ChromePasswordManagerClient(
- content::WebContents* web_contents)
+ content::WebContents* web_contents,
+ autofill::AutofillManagerDelegate* autofill_manager_delegate)
: content::WebContentsObserver(web_contents),
- driver_(web_contents, this),
+ driver_(web_contents, this, autofill_manager_delegate),
observer_(NULL),
weak_factory_(this),
logger_(NULL) {}

Powered by Google App Engine
This is Rietveld 408576698