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 62c64b272b24d2b173a21c3ae31db53dccd093d5..54b095ed9493a243208ffdd4546564fed353d8d3 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) |