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

Unified Diff: chrome/renderer/autofill/password_autofill_agent_browsertest.cc

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/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

Powered by Google App Engine
This is Rietveld 408576698