summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/search_provider.cc
diff options
context:
space:
mode:
authordominich@chromium.org <dominich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-01 06:16:52 +0000
committerdominich@chromium.org <dominich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-01 06:16:52 +0000
commit925136821950cb844c98dcfa88c7807e8708746e (patch)
tree4b2337cac69fee8f562b68fba7385349f5de0045 /chrome/browser/autocomplete/search_provider.cc
parent70213de441a0c8e29ffc6f73bd64c78aabba06aa (diff)
downloadchromium_src-925136821950cb844c98dcfa88c7807e8708746e.zip
chromium_src-925136821950cb844c98dcfa88c7807e8708746e.tar.gz
chromium_src-925136821950cb844c98dcfa88c7807e8708746e.tar.bz2
Remove confidence from AutocompleteMatch and use History DB instead.
Adds a class responsible for providing recommended actions given an AutocompleteMatch which uses the History Database to determine that action. BUG=92896,94423 TEST=NetworkActionPredictorTest* Review URL: http://codereview.chromium.org/7686012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99140 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/search_provider.cc')
-rw-r--r--chrome/browser/autocomplete/search_provider.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/autocomplete/search_provider.cc b/chrome/browser/autocomplete/search_provider.cc
index 1dae40a..11a335b 100644
--- a/chrome/browser/autocomplete/search_provider.cc
+++ b/chrome/browser/autocomplete/search_provider.cc
@@ -815,10 +815,7 @@ void SearchProvider::AddMatchToMap(const string16& query_string,
bool is_keyword,
bool prevent_inline_autocomplete,
MatchMap* map) {
- // TODO(dominich): Confidence. In this case, the confidence must depend on the
- // source. Scored terms can be calculated based on score, but other sources
- // need more care. Eg, suggest.
- AutocompleteMatch match(this, relevance, 0.0f, false, type);
+ AutocompleteMatch match(this, relevance, false, type);
std::vector<size_t> content_param_offsets;
const TemplateURL& provider = is_keyword ? providers_.keyword_provider() :
providers_.default_provider();
@@ -916,8 +913,7 @@ AutocompleteMatch SearchProvider::NavigationToMatch(
bool is_keyword) {
const string16& input_text =
is_keyword ? keyword_input_text_ : input_.text();
- // TODO(dominich): Confidence calculation.
- AutocompleteMatch match(this, relevance, 0.0f, false,
+ AutocompleteMatch match(this, relevance, false,
AutocompleteMatch::NAVSUGGEST);
match.destination_url = navigation.url;
match.contents =