| 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 02aaf22f12a270655847b124e20b9d227c014c43..0748f5561cdef0a644edb9b92b30a250f807e31d 100644
|
| --- a/components/autofill/content/browser/content_autofill_driver.cc
|
| +++ b/components/autofill/content/browser/content_autofill_driver.cc
|
| @@ -156,12 +156,20 @@ void ContentAutofillDriver::RendererShouldClearPreviewedForm() {
|
| host->Send(new AutofillMsg_ClearPreviewedForm(host->GetRoutingID()));
|
| }
|
|
|
| -void ContentAutofillDriver::RendererShouldSetNodeText(
|
| +void ContentAutofillDriver::RendererShouldFillFieldWithValue(
|
| const base::string16& value) {
|
| if (!RendererIsAvailable())
|
| return;
|
| content::RenderViewHost* host = web_contents()->GetRenderViewHost();
|
| - host->Send(new AutofillMsg_SetNodeText(host->GetRoutingID(), value));
|
| + host->Send(new AutofillMsg_FillFieldWithValue(host->GetRoutingID(), value));
|
| +}
|
| +void ContentAutofillDriver::RendererShouldPreviewFieldWithValue(
|
| + const base::string16& value) {
|
| + if (!RendererIsAvailable())
|
| + return;
|
| + content::RenderViewHost* host = web_contents()->GetRenderViewHost();
|
| + host->Send(new AutofillMsg_PreviewFieldWithValue(host->GetRoutingID(),
|
| + value));
|
| }
|
|
|
| bool ContentAutofillDriver::OnMessageReceived(const IPC::Message& message) {
|
|
|