App Launcher: Webstore results are now ranked by title match.
commit4872ba41d2be74386a21897636c7d64a698cc97b
authormgiuca <mgiuca@chromium.org>
Tue, 12 May 2015 03:46:22 +0000 (11 20:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 12 May 2015 03:46:41 +0000 (12 03:46 +0000)
tree35580f6a0e9579ed08b210e25f488ea45ba5c878
parent6285aa894b72e6eb5e5d584ac0c17ebbd77c9a45
App Launcher: Webstore results are now ranked by title match.

Previously, all Webstore results had an internal relevance score of 0.0.
Now they are scored based on the query matched against the app's title,
and scores of 0.0 are discarded. This fixes app results showing up
because the word you typed appears in the app's web store description,
but not its title.

BUG=481837

Review URL: https://codereview.chromium.org/1110903002

Cr-Commit-Position: refs/heads/master@{#329343}
chrome/browser/ui/app_list/search/webstore/webstore_provider.cc
chrome/browser/ui/app_list/search/webstore/webstore_provider.h
chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc
chrome/browser/ui/app_list/search/webstore/webstore_result.cc
chrome/browser/ui/app_list/search/webstore/webstore_result.h