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

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mem leak Created 6 years 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/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 c008944acd3757ab1d46bef5e3e951b49b2129ad..45cad2ae0a1e7e85ec1723a42f3472381f514da7 100644
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc
@@ -24,6 +24,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"
@@ -205,12 +206,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(
@@ -222,4 +222,9 @@ void ChromeAutofillClient::DidFillOrPreviewField(
#endif // defined(OS_ANDROID)
}
+void ChromeAutofillClient::OnFirstUserGestureObserved() {
+ web_contents()->SendToAllFrames(
+ new AutofillMsg_FirstUserGestureObservedInTab(routing_id()));
+}
+
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698