Chromium Code Reviews| Index: components/autofill/content/renderer/autofill_agent.cc |
| diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc |
| index 85dd8243a5776b90905bc6ceb6a26f50b91c45c7..6afbd4ca8dd79d0d60c860e2d41e584424cf114d 100644 |
| --- a/components/autofill/content/renderer/autofill_agent.cc |
| +++ b/components/autofill/content/renderer/autofill_agent.cc |
| @@ -187,13 +187,6 @@ void AutofillAgent::DidFinishDocumentLoad() { |
| ProcessForms(); |
| } |
| -void AutofillAgent::FrameDetached(WebFrame* frame) { |
| - if (frame != render_frame()->GetWebFrame()) |
| - return; |
| - |
| - form_cache_.Reset(); |
| -} |
| - |
| void AutofillAgent::WillSubmitForm(const WebFormElement& form) { |
| FormData form_data; |
| if (WebFormElementToFormData(form, |
| @@ -245,19 +238,6 @@ void AutofillAgent::Resized() { |
| HidePopup(); |
| } |
| -void AutofillAgent::LegacyFrameWillClose(blink::WebFrame* frame) { |
| - if (in_flight_request_form_.isNull()) |
| - return; |
| - |
| - for (blink::WebFrame* temp = render_frame()->GetWebFrame(); temp; |
| - temp = temp->parent()) { |
| - if (temp == frame) { |
| - Send(new AutofillHostMsg_CancelRequestAutocomplete(routing_id())); |
|
Dan Beam
2014/12/20 01:10:51
this is how it used to work
|
| - break; |
| - } |
| - } |
| -} |
| - |
| void AutofillAgent::didRequestAutocomplete( |
| const WebFormElement& form) { |
| DCHECK_EQ(form.document().frame(), render_frame()->GetWebFrame()); |
| @@ -274,7 +254,6 @@ void AutofillAgent::didRequestAutocomplete( |
| !net::IsCertStatusError(ssl_status.cert_status); |
| bool allow_unsafe = base::CommandLine::ForCurrentProcess()->HasSwitch( |
| ::switches::kReduceSecurityForTesting); |
| - |
| FormData form_data; |
| std::string error_message; |
| if (!in_flight_request_form_.isNull()) { |
| @@ -310,7 +289,7 @@ void AutofillAgent::didRequestAutocomplete( |
| HidePopup(); |
| in_flight_request_form_ = form; |
| - Send(new AutofillHostMsg_RequestAutocomplete(routing_id(), form_data, url)); |
| + Send(new AutofillHostMsg_RequestAutocomplete(routing_id(), form_data)); |
| } |
| void AutofillAgent::setIgnoreTextChanges(bool ignore) { |
| @@ -801,10 +780,6 @@ void AutofillAgent::LegacyAutofillAgent::OnDestruct() { |
| // No-op. Don't delete |this|. |
| } |
| -void AutofillAgent::LegacyAutofillAgent::FrameDetached(WebFrame* frame) { |
| - agent_->FrameDetached(frame); |
| -} |
| - |
| void AutofillAgent::LegacyAutofillAgent::FocusedNodeChanged( |
| const WebNode& node) { |
| agent_->FocusedNodeChanged(node); |
| @@ -814,9 +789,4 @@ void AutofillAgent::LegacyAutofillAgent::Resized() { |
| agent_->Resized(); |
| } |
| -void AutofillAgent::LegacyAutofillAgent::FrameWillClose( |
| - blink::WebFrame* frame) { |
| - agent_->LegacyFrameWillClose(frame); |
| -} |
| - |
| } // namespace autofill |