| Index: chrome/browser/autocomplete/history_url_provider.cc
|
| diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc
|
| index e831193fd3c86d59f6fa9bdc39aec0ba193f6e0d..7ba3150800e72c046152ce9caf551606fb30fef2 100644
|
| --- a/chrome/browser/autocomplete/history_url_provider.cc
|
| +++ b/chrome/browser/autocomplete/history_url_provider.cc
|
| @@ -349,6 +349,7 @@ AutocompleteMatch HistoryURLProvider::SuggestExactInput(
|
| match.fill_into_edit =
|
| AutocompleteInput::FormattedStringWithEquivalentMeaning(url,
|
| display_string);
|
| + match.allowed_to_be_default_match = true;
|
| // NOTE: Don't set match.inline_autocomplete_offset (to allow inline
|
| // autocompletion) here, it's surprising and annoying.
|
|
|
| @@ -1059,8 +1060,10 @@ AutocompleteMatch HistoryURLProvider::HistoryMatchToACMatch(
|
| net::FormatUrl(info.url(), languages, format_types,
|
| net::UnescapeRule::SPACES, NULL, NULL,
|
| &inline_autocomplete_offset));
|
| - if (!params->prevent_inline_autocomplete)
|
| + if (!params->prevent_inline_autocomplete) {
|
| + match.allowed_to_be_default_match = true;
|
| match.inline_autocomplete_offset = inline_autocomplete_offset;
|
| + }
|
| DCHECK((match.inline_autocomplete_offset == string16::npos) ||
|
| (match.inline_autocomplete_offset <= match.fill_into_edit.length()));
|
|
|
|
|