summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/history_contents_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autocomplete/history_contents_provider.cc')
-rw-r--r--chrome/browser/autocomplete/history_contents_provider.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/history_contents_provider.cc b/chrome/browser/autocomplete/history_contents_provider.cc
index 1d3ed28..9eef77c 100644
--- a/chrome/browser/autocomplete/history_contents_provider.cc
+++ b/chrome/browser/autocomplete/history_contents_provider.cc
@@ -192,7 +192,8 @@ AutocompleteMatch HistoryContentsProvider::ResultToMatch(
int score) {
// TODO(sky): if matched title highlight matching words in title.
// Also show star in popup.
- AutocompleteMatch match(this, score, false);
+ AutocompleteMatch match(this, score, false, MatchInTitle(result) ?
+ AutocompleteMatch::HISTORY_TITLE : AutocompleteMatch::HISTORY_BODY);
match.fill_into_edit = StringForURLDisplay(result.url(), true);
match.destination_url = UTF8ToWide(result.url().spec());
match.contents = match.fill_into_edit;