| Index: chrome/browser/automation/testing_automation_provider.cc
|
| ===================================================================
|
| --- chrome/browser/automation/testing_automation_provider.cc (revision 87452)
|
| +++ chrome/browser/automation/testing_automation_provider.cc (working copy)
|
| @@ -1247,8 +1247,23 @@
|
| const AutocompleteResult& result = automation_omnibox_tracker_->
|
| GetResource(autocomplete_edit_handle)->model()->result();
|
| for (AutocompleteResult::const_iterator i = result.begin();
|
| - i != result.end(); ++i)
|
| - matches->push_back(AutocompleteMatchData(*i));
|
| + i != result.end(); ++i) {
|
| + AutocompleteMatch match(*i);
|
| + AutocompleteMatchData match_data;
|
| + match_data.provider_name = match.provider->name();
|
| + match_data.relevance = match.relevance;
|
| + match_data.deletable = match.deletable;
|
| + match_data.fill_into_edit = match.fill_into_edit;
|
| + match_data.inline_autocomplete_offset = match.inline_autocomplete_offset;
|
| + match_data.destination_url = match.destination_url;
|
| + match_data.contents = match.contents;
|
| + match_data.description = match.description;
|
| + match_data.is_history_what_you_typed_match =
|
| + match.is_history_what_you_typed_match;
|
| + match_data.type = AutocompleteMatch::TypeToString(match.type);
|
| + match_data.starred = match.starred;
|
| + matches->push_back(match_data);
|
| + }
|
| *success = true;
|
| }
|
| }
|
|
|