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 48c56a105539eb461f87610caf0b17c356aa97cb..a941a723515996cf4e36d4db66a917f9ded9d2df 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_autocompletion to something non-empty here; |
// it's surprising and annoying. |
@@ -1062,6 +1063,7 @@ AutocompleteMatch HistoryURLProvider::HistoryMatchToACMatch( |
if (!params->prevent_inline_autocomplete && |
(inline_autocomplete_offset != string16::npos)) { |
DCHECK(inline_autocomplete_offset <= match.fill_into_edit.length()); |
+ match.allowed_to_be_default_match = true; |
match.inline_autocompletion = |
match.fill_into_edit.substr(inline_autocomplete_offset); |
} |