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

Unified Diff: chrome/browser/autofill/form_structure_browsertest.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/form_structure_browsertest.cc
diff --git a/chrome/browser/autofill/form_structure_browsertest.cc b/chrome/browser/autofill/form_structure_browsertest.cc
index 4a77401161403f5e33acc874517d54383d39a80b..7b1049f7ea89fa43349eb568e28bb0030a0ef54f 100644
--- a/chrome/browser/autofill/form_structure_browsertest.cc
+++ b/chrome/browser/autofill/form_structure_browsertest.cc
@@ -115,9 +115,9 @@ void FormStructureBrowserTest::GenerateResults(const std::string& input,
content::WebContents* web_contents =
browser()->tab_strip_model()->GetActiveWebContents();
- ContentAutofillDriver* autofill_driver =
+ ContentAutofillDriver* autofill_driver = static_cast<ContentAutofillDriver*>(
ContentAutofillDriverFactory::FromWebContents(web_contents)
- ->DriverForFrame(web_contents->GetMainFrame());
+ ->DriverForFrame(web_contents->GetMainFrame()));
ASSERT_NE(nullptr, autofill_driver);
AutofillManager* autofill_manager = autofill_driver->autofill_manager();
ASSERT_NE(nullptr, autofill_manager);

Powered by Google App Engine
This is Rietveld 408576698