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

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

Issue 2606473003: Use AutofillDriver* in ContentAutofillDriverFactory when possible (Closed)
Patch Set: Fix Android compilation Created 4 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/autofill/autofill_interactive_uitest.cc
diff --git a/chrome/browser/autofill/autofill_interactive_uitest.cc b/chrome/browser/autofill/autofill_interactive_uitest.cc
index 5820556ceffac44fbfc57ecb3a0ff558aae6eb46..6503703695b6bf618aadfbbd146fdf8219a4894e 100644
--- a/chrome/browser/autofill/autofill_interactive_uitest.cc
+++ b/chrome/browser/autofill/autofill_interactive_uitest.cc
@@ -235,8 +235,9 @@ class AutofillInteractiveTest : public InProcessBrowserTest {
// Inject the test delegate into the AutofillManager.
content::WebContents* web_contents = GetWebContents();
ContentAutofillDriver* autofill_driver =
- ContentAutofillDriverFactory::FromWebContents(web_contents)
- ->DriverForFrame(web_contents->GetMainFrame());
+ static_cast<ContentAutofillDriver*>(
+ ContentAutofillDriverFactory::FromWebContents(web_contents)
+ ->DriverForFrame(web_contents->GetMainFrame()));
AutofillManager* autofill_manager = autofill_driver->autofill_manager();
autofill_manager->SetTestDelegate(&test_delegate_);
@@ -255,8 +256,9 @@ class AutofillInteractiveTest : public InProcessBrowserTest {
// Make sure to close any showing popups prior to tearing down the UI.
content::WebContents* web_contents = GetWebContents();
AutofillManager* autofill_manager =
- ContentAutofillDriverFactory::FromWebContents(web_contents)
- ->DriverForFrame(web_contents->GetMainFrame())
+ static_cast<ContentAutofillDriver*>(
+ ContentAutofillDriverFactory::FromWebContents(web_contents)
+ ->DriverForFrame(web_contents->GetMainFrame()))
->autofill_manager();
autofill_manager->client()->HideAutofillPopup();
test::ReenableSystemServices();
« no previous file with comments | « chrome/browser/autofill/autofill_browsertest.cc ('k') | chrome/browser/autofill/form_structure_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698