Index: chrome/browser/password_manager/password_manager_delegate_impl.cc |
diff --git a/chrome/browser/password_manager/password_manager_delegate_impl.cc b/chrome/browser/password_manager/password_manager_delegate_impl.cc |
index 989d918d9703da780de7d4a5fcf92494e4997d06..c82afc202f223c729ce2ed187564ef84c26ef48a 100644 |
--- a/chrome/browser/password_manager/password_manager_delegate_impl.cc |
+++ b/chrome/browser/password_manager/password_manager_delegate_impl.cc |
@@ -15,6 +15,7 @@ |
#include "chrome/browser/ui/sync/one_click_signin_helper.h" |
#include "components/autofill/browser/autofill_manager.h" |
#include "components/autofill/common/autofill_messages.h" |
+#include "components/autofill/content/browser/autofill_driver_impl.h" |
#include "content/public/browser/navigation_entry.h" |
#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/web_contents.h" |
@@ -166,10 +167,10 @@ PasswordManagerDelegateImpl::~PasswordManagerDelegateImpl() { |
void PasswordManagerDelegateImpl::FillPasswordForm( |
const autofill::PasswordFormFillData& form_data) { |
- autofill::AutofillManager* autofill_manager = |
- autofill::AutofillManager::FromWebContents(web_contents_); |
+ autofill::AutofillDriverImpl* autofill_driver = |
+ autofill::AutofillDriverImpl::FromWebContents(web_contents_); |
// Browser process will own popup UI, so renderer should not show the popup. |
- bool disable_popup = autofill_manager->IsNativeUiEnabled(); |
+ bool disable_popup = autofill_driver->autofill_manager()->IsNativeUiEnabled(); |
web_contents_->GetRenderViewHost()->Send( |
new AutofillMsg_FillPasswordForm( |