Index: chrome/browser/autofill/autofill_interactive_uitest.cc |
diff --git a/chrome/browser/autofill/autofill_interactive_uitest.cc b/chrome/browser/autofill/autofill_interactive_uitest.cc |
index 96ffae19e5a80691892f7f60eb72f76ea72cba39..242eccce76a3a124d5270edde1f1bbd67360e0a4 100644 |
--- a/chrome/browser/autofill/autofill_interactive_uitest.cc |
+++ b/chrome/browser/autofill/autofill_interactive_uitest.cc |
@@ -18,6 +18,7 @@ |
#include "components/autofill/browser/autofill_profile.h" |
#include "components/autofill/browser/personal_data_manager.h" |
#include "components/autofill/browser/personal_data_manager_observer.h" |
+#include "components/autofill/content/browser/autofill_driver_impl.h" |
#include "content/public/browser/notification_observer.h" |
#include "content/public/browser/notification_registrar.h" |
#include "content/public/browser/notification_service.h" |
@@ -206,7 +207,7 @@ class AutofillInteractiveTest : public InProcessBrowserTest { |
content::WebContents* web_contents = |
browser()->tab_strip_model()->GetActiveWebContents(); |
AutofillManager* autofill_manager = |
- AutofillManager::FromWebContents(web_contents); |
+ AutofillDriverImpl::FromWebContents(web_contents)->autofill_manager(); |
if (autofill_manager->IsNativeUiEnabled()) { |
external_delegate_.reset( |
new TestAutofillExternalDelegate(web_contents, autofill_manager)); |
@@ -220,7 +221,7 @@ class AutofillInteractiveTest : public InProcessBrowserTest { |
content::WebContents* web_contents = |
browser()->tab_strip_model()->GetActiveWebContents(); |
AutofillManager* autofill_manager = |
- AutofillManager::FromWebContents(web_contents); |
+ AutofillDriverImpl::FromWebContents(web_contents)->autofill_manager(); |
autofill_manager->delegate()->HideAutofillPopup(); |
} |