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

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

Issue 7314018: Don't autocomplete searches of >1 word if they've only been visited once and the user has not yet... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 5 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/search_provider.h
===================================================================
--- chrome/browser/autocomplete/search_provider.h (revision 91576)
+++ chrome/browser/autocomplete/search_provider.h (working copy)
@@ -232,12 +232,14 @@
// Determines the relevance for a particular match. We use different scoring
// algorithms for the different types of matches.
int CalculateRelevanceForWhatYouTyped() const;
- // |time| is the time at which this query was last seen. |is_keyword| is true
- // if the search is from the keyword provider. |looks_like_url| is true if the
- // search term would be treated as a URL if typed into the omnibox.
+ // |time| is the time at which this query was last seen.
+ // |is_primary_provider| is true if this match comes from the primary provider
+ // for the user's input (e.g. the keyword provider for a keyword input).
+ // |prevent_inline_autocomplete| is true if we should not inline autocomplete
+ // this query.
int CalculateRelevanceForHistory(const base::Time& time,
- bool looks_like_url,
- bool is_keyword) const;
+ bool is_primary_provider,
+ bool prevent_inline_autocomplete) const;
// |result_number| is the index of the suggestion in the result set from the
// server; the best suggestion is suggestion number 0. |is_keyword| is true
// if the search is from the keyword provider.
« no previous file with comments | « no previous file | chrome/browser/autocomplete/search_provider.cc » ('j') | chrome/browser/autocomplete/search_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698