| Index: components/autofill/content/browser/content_autofill_driver.cc
|
| diff --git a/components/autofill/content/browser/content_autofill_driver.cc b/components/autofill/content/browser/content_autofill_driver.cc
|
| index af7487745b6808f2353d86febbeae2840d4f30d1..6707177dfc11aa629fd14bc7594e1baffdf97edc 100644
|
| --- a/components/autofill/content/browser/content_autofill_driver.cc
|
| +++ b/components/autofill/content/browser/content_autofill_driver.cc
|
| @@ -108,6 +108,13 @@ void ContentAutofillDriver::SendFormDataToRenderer(
|
| }
|
| }
|
|
|
| +void ContentAutofillDriver::PingRenderer() {
|
| + if (!RendererIsAvailable())
|
| + return;
|
| + content::RenderViewHost* host = web_contents()->GetRenderViewHost();
|
| + host->Send(new AutofillMsg_Ping(host->GetRoutingID()));
|
| +}
|
| +
|
| void ContentAutofillDriver::SendAutofillTypePredictionsToRenderer(
|
| const std::vector<FormStructure*>& forms) {
|
| if (!CommandLine::ForCurrentProcess()->HasSwitch(
|
| @@ -181,6 +188,9 @@ bool ContentAutofillDriver::OnMessageReceived(const IPC::Message& message) {
|
| IPC_MESSAGE_FORWARD(AutofillHostMsg_DidPreviewAutofillFormData,
|
| autofill_manager_.get(),
|
| AutofillManager::OnDidPreviewAutofillFormData)
|
| + IPC_MESSAGE_FORWARD(AutofillHostMsg_PingAck,
|
| + &autofill_external_delegate_,
|
| + AutofillExternalDelegate::OnPingAck)
|
| IPC_MESSAGE_FORWARD(AutofillHostMsg_DidFillAutofillFormData,
|
| autofill_manager_.get(),
|
| AutofillManager::OnDidFillAutofillFormData)
|
|
|