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

Unified Diff: chrome/browser/autofill/autofill_interactive_uitest.cc

Issue 16286020: Abstract WebContentsObserver from Autofill shared code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to fix conflict Created 7 years, 6 months 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/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();
}

Powered by Google App Engine
This is Rietveld 408576698