| Index: chrome/browser/autocomplete_history_manager.cc
|
| diff --git a/chrome/browser/autocomplete_history_manager.cc b/chrome/browser/autocomplete_history_manager.cc
|
| index ea4e3998508430f7b54a7cb95ef8d17d876db979..84b411960c3595c27ad40092c19b988b119f7b4a 100644
|
| --- a/chrome/browser/autocomplete_history_manager.cc
|
| +++ b/chrome/browser/autocomplete_history_manager.cc
|
| @@ -219,6 +219,11 @@ void AutocompleteHistoryManager::OnWebDataServiceRequestDone(
|
| SendSuggestions(&suggestions);
|
| }
|
|
|
| +void AutocompleteHistoryManager::SetExternalDelegate(
|
| + AutofillExternalDelegate* delegate) {
|
| + external_delegate_ = delegate;
|
| +}
|
| +
|
| AutocompleteHistoryManager::AutocompleteHistoryManager(
|
| TabContents* tab_contents,
|
| Profile* profile,
|
| @@ -271,15 +276,15 @@ void AutocompleteHistoryManager::SendSuggestions(
|
| autofill_labels_,
|
| autofill_icons_,
|
| autofill_unique_ids_);
|
| + } else {
|
| + Send(new AutofillMsg_SuggestionsReturned(routing_id(),
|
| + query_id_,
|
| + autofill_values_,
|
| + autofill_labels_,
|
| + autofill_icons_,
|
| + autofill_unique_ids_));
|
| }
|
|
|
| - Send(new AutofillMsg_SuggestionsReturned(routing_id(),
|
| - query_id_,
|
| - autofill_values_,
|
| - autofill_labels_,
|
| - autofill_icons_,
|
| - autofill_unique_ids_));
|
| -
|
| query_id_ = 0;
|
| autofill_values_.clear();
|
| autofill_labels_.clear();
|
|
|