| Index: chrome/browser/autofill/autofill_manager.cc
|
| diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc
|
| index dbf2037af209eb8fb6227890b5ca853243ef79c5..7b5b11bb7b34f7cc546ac7e90b6b6058be38432d 100644
|
| --- a/chrome/browser/autofill/autofill_manager.cc
|
| +++ b/chrome/browser/autofill/autofill_manager.cc
|
| @@ -360,6 +360,8 @@ bool AutofillManager::OnMessageReceived(const IPC::Message& message) {
|
| OnShowPasswordSuggestions)
|
| IPC_MESSAGE_HANDLER(AutofillHostMsg_SetDataList,
|
| OnSetDataList)
|
| + IPC_MESSAGE_HANDLER(AutofillHostMsg_RequestAutocomplete,
|
| + OnRequestAutocomplete)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
|
|
| @@ -797,6 +799,19 @@ void AutofillManager::OnSetDataList(const std::vector<string16>& values,
|
| }
|
| }
|
|
|
| +void AutofillManager::OnRequestAutocomplete(int unique_id,
|
| + const FormData& form) {
|
| + // TODO(dbeam): implement interactive autocomplete UI.
|
| +
|
| + RenderViewHost* host = web_contents()->GetRenderViewHost();
|
| + if (!host)
|
| + return;
|
| +
|
| + // Just send a failure right away.
|
| + host->Send(new AutofillMsg_RequestAutocompleteFinished(
|
| + host->GetRoutingID(), unique_id, false));
|
| +}
|
| +
|
| void AutofillManager::OnLoadedServerPredictions(
|
| const std::string& response_xml) {
|
| // Parse and store the server predictions.
|
|
|