Index: chrome/renderer/autofill/password_autofill_agent_browsertest.cc |
diff --git a/chrome/renderer/autofill/password_autofill_agent_browsertest.cc b/chrome/renderer/autofill/password_autofill_agent_browsertest.cc |
index d9c08c9adac1461b93141d1b9705c3a71545b4d9..e0551c1610ae1181edae2af0e3b033ae832e125f 100644 |
--- a/chrome/renderer/autofill/password_autofill_agent_browsertest.cc |
+++ b/chrome/renderer/autofill/password_autofill_agent_browsertest.cc |
@@ -178,13 +178,13 @@ class PasswordAutofillAgentTest : public ChromeRenderViewTest { |
void SimulateOnFillPasswordForm( |
const PasswordFormFillData& fill_data) { |
AutofillMsg_FillPasswordForm msg(0, kPasswordFillFormDataId, fill_data); |
- static_cast<content::RenderViewObserver*>(password_autofill_agent_) |
+ static_cast<content::RenderFrameObserver*>(password_autofill_agent_) |
->OnMessageReceived(msg); |
} |
void SendVisiblePasswordForms() { |
- static_cast<content::RenderViewObserver*>(password_autofill_agent_) |
- ->DidFinishLoad(GetMainFrame()); |
+ static_cast<content::RenderFrameObserver*>(password_autofill_agent_) |
+ ->DidFinishLoad(); |
} |
void SetUp() override { |
@@ -308,7 +308,7 @@ class PasswordAutofillAgentTest : public ChromeRenderViewTest { |
->FormControlElementClicked(username_input, false); |
AutofillMsg_FillPasswordSuggestion msg(0, username, password); |
- static_cast<content::RenderViewObserver*>(autofill_agent_) |
+ static_cast<content::RenderFrameObserver*>(autofill_agent_) |
->OnMessageReceived(msg); |
} |
@@ -1404,7 +1404,7 @@ TEST_F(PasswordAutofillAgentTest, |
// Simulate that the password value was cleared by the site's JavaScript |
// before submit. |
password_element_.setValue(WebString()); |
- static_cast<content::RenderViewObserver*>(password_autofill_agent_) |
+ static_cast<content::RenderViewObserver*>(&password_autofill_agent_->legacy_) |
->WillSubmitForm(GetMainFrame(), username_element_.form()); |
// Observe that the PasswordAutofillAgent still remembered the last non-empty |
@@ -1425,7 +1425,7 @@ TEST_F(PasswordAutofillAgentTest, |
// Simulate that the user actually cleared the password again. |
SimulateInputChangeForElement( |
"", true, GetMainFrame(), password_element_, true); |
- static_cast<content::RenderViewObserver*>(password_autofill_agent_) |
+ static_cast<content::RenderViewObserver*>(&password_autofill_agent_->legacy_) |
->WillSubmitForm(GetMainFrame(), username_element_.form()); |
// Observe that the PasswordAutofillAgent respects the user having cleared the |
@@ -1454,7 +1454,7 @@ TEST_F(PasswordAutofillAgentTest, |
// Simulate that the password value was cleared by the site's JavaScript |
// before submit. |
password_element_.setValue(WebString()); |
- static_cast<content::RenderViewObserver*>(password_autofill_agent_) |
+ static_cast<content::RenderViewObserver*>(&password_autofill_agent_->legacy_) |
->WillSubmitForm(GetMainFrame(), username_element_.form()); |
// Observe that the PasswordAutofillAgent still remembered the last non-empty |