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

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: update tests, respond to review comments, cleanup Created 6 years, 1 month 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 41f2aaac04d8301b7b0c872a2656b25f2ec994c2..a3c03c306ca6cf864666d7b3d56478409c97298a 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(

Powered by Google App Engine
This is Rietveld 408576698