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

Unified Diff: chrome/browser/autocomplete/history_url_provider.h

Issue 1022643002: Omnibox: Make HUP Scoring More Sane in Prevent-Inline Mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compiles and tested Created 5 years, 9 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/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.

Powered by Google App Engine
This is Rietveld 408576698