Index: chrome/browser/autocomplete/history_url_provider.h |
diff --git a/chrome/browser/autocomplete/history_url_provider.h b/chrome/browser/autocomplete/history_url_provider.h |
index 2fcf83098f6d73d396a6d0725a1e53655c0ca343..e5e35f9d9c7f9545cfab139fdd418b120390d0c9 100644 |
--- a/chrome/browser/autocomplete/history_url_provider.h |
+++ b/chrome/browser/autocomplete/history_url_provider.h |
@@ -157,6 +157,11 @@ struct HistoryURLProviderParams { |
// this to. See comments in DoAutocomplete(). |
PromoteType promote_type; |
+ // True if |what_you_typed_match| is eligible for display. If this is true, |
+ // PromoteMatchesIfNecessary() may choose to place |what_you_typed_match| on |
+ // |matches_| even when |promote_type| is not WHAT_YOU_TYPED_MATCH. |
+ bool have_what_you_typed_match; |
+ |
// Languages we should pass to gfx::GetCleanStringFromUrl. |
std::string languages; |
@@ -246,10 +251,11 @@ class HistoryURLProvider : public HistoryProvider { |
history::URLDatabase* db, |
HistoryURLProviderParams* params); |
- // May promote either the what you typed match or first history match in |
- // params->matches to the front of |matches_|, depending on the value of |
- // params->promote_type. |
- void PromoteMatchIfNecessary(const HistoryURLProviderParams& params); |
+ // May promote the what you typed match, the first history match in |
+ // parmas->matches, or both to the front of |matches_|, depending on the |
Peter Kasting
2015/03/20 23:30:19
params
Mark P
2015/03/24 18:23:26
Done.
|
+ // values of params->promote_type, params->have_what_you_typed_match, and |
+ // params->prevent_inline_autocomplete. |
+ void PromoteMatchesIfNecessary(const HistoryURLProviderParams& params); |
// Dispatches the results to the autocomplete controller. Called on the |
// main thread by ExecuteWithDB when the results are available. |