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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_controller_unittest.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/ui/autofill/autofill_popup_controller_unittest.cc
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
index a6ef0406f1470abf07411f11d52bf338f4b68616..81a62e40c13e507b0a9d22e065af3a51dbd774c3 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
@@ -126,8 +126,8 @@ class AutofillPopupControllerUnitTest : public ChromeRenderViewHostTestHarness {
NavigateAndCommit(GURL("about:blank"));
ContentAutofillDriverFactory* factory =
ContentAutofillDriverFactory::FromWebContents(web_contents());
- ContentAutofillDriver* driver =
- factory->DriverForFrame(web_contents()->GetMainFrame());
+ ContentAutofillDriver* driver = static_cast<ContentAutofillDriver*>(
+ factory->DriverForFrame(web_contents()->GetMainFrame()));
external_delegate_.reset(
new NiceMock<MockAutofillExternalDelegate>(
driver->autofill_manager(),
@@ -362,8 +362,8 @@ TEST_F(AutofillPopupControllerUnitTest, PopupsWithOnlyDataLists) {
TEST_F(AutofillPopupControllerUnitTest, GetOrCreate) {
ContentAutofillDriverFactory* factory =
ContentAutofillDriverFactory::FromWebContents(web_contents());
- ContentAutofillDriver* driver =
- factory->DriverForFrame(web_contents()->GetMainFrame());
+ ContentAutofillDriver* driver = static_cast<ContentAutofillDriver*>(
+ factory->DriverForFrame(web_contents()->GetMainFrame()));
MockAutofillExternalDelegate delegate(driver->autofill_manager(), driver);
WeakPtr<AutofillPopupControllerImpl> controller =

Powered by Google App Engine
This is Rietveld 408576698