Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3986)

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 7104029: Automation: fix chrome/browser dependency on chrome/test headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
}

Powered by Google App Engine
This is Rietveld 408576698