Index: chrome/browser/ui/autofill/chrome_autofill_client.cc |
diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.cc b/chrome/browser/ui/autofill/chrome_autofill_client.cc |
index 41f2aaac04d8301b7b0c872a2656b25f2ec994c2..1c93b765d4bada5168af83d0ac9239a9408c901a 100644 |
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc |
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc |
@@ -23,6 +23,7 @@ |
#include "components/autofill/content/browser/content_autofill_driver.h" |
#include "components/autofill/content/common/autofill_messages.h" |
#include "components/autofill/core/common/autofill_pref_names.h" |
+#include "components/password_manager/content/browser/content_password_manager_driver.h" |
#include "content/public/browser/render_view_host.h" |
#include "ui/gfx/rect.h" |
@@ -195,12 +196,11 @@ void ChromeAutofillClient::OnZoomChanged( |
} |
void ChromeAutofillClient::DetectAccountCreationForms( |
+ content::RenderFrameHost* rfh, |
const std::vector<autofill::FormStructure*>& forms) { |
- password_manager::PasswordGenerationManager* manager = |
- ChromePasswordManagerClient::GetGenerationManagerFromWebContents( |
- web_contents_); |
- if (manager) |
- manager->DetectAccountCreationForms(forms); |
+ password_manager::ContentPasswordManagerDriver::GetForRenderFrameHost(rfh) |
+ ->GetPasswordGenerationManager() |
+ ->DetectAccountCreationForms(forms); |
} |
void ChromeAutofillClient::DidFillOrPreviewField( |
@@ -212,4 +212,9 @@ void ChromeAutofillClient::DidFillOrPreviewField( |
#endif // defined(OS_ANDROID) |
} |
+void ChromeAutofillClient::OnFirstUserGestureObserved() { |
+ web_contents()->SendToAllFrames( |
+ new AutofillMsg_FirstUserGestureObservedInTab(routing_id())); |
+} |
+ |
} // namespace autofill |