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 bec975b9156f5ac7d7fe1efed8757a6954ce7b8d..27f51d29e24c4beb3458d347974a1658c433bbd9 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); |
} |
@@ -1403,7 +1403,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 |
@@ -1424,7 +1424,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 |
@@ -1453,7 +1453,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 |