Sort unlaunched apps on app list start page by apps grid order.
commitc7d7e2439dcdfd3f66d1d0b734624aac5f742741
authorcalamity <calamity@chromium.org>
Fri, 20 Feb 2015 02:05:34 +0000 (19 18:05 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 20 Feb 2015 02:06:07 +0000 (20 02:06 +0000)
treef6337bbdbd7488d847ac73ed05f51faaa97946ce
parent2b4cc9395f191c01519d53056b144c010efb1e45
Sort unlaunched apps on app list start page by apps grid order.

When recommending, apps now use a small number multiplied by the index of an
item in the apps grid as an app's score if the app has never been launched.
This causes the apps grid order to be used for apps that have never been
launched. The modification is small enough that no apps that have been
launched in the past year should rank lower than an unlaunched app.

BUG=455338

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

Cr-Commit-Position: refs/heads/master@{#317218}
chrome/browser/ui/app_list/app_list_view_delegate.cc
chrome/browser/ui/app_list/search/app_search_provider.cc
chrome/browser/ui/app_list/search/app_search_provider.h
chrome/browser/ui/app_list/search/app_search_provider_unittest.cc
chrome/browser/ui/app_list/search/search_controller_factory.cc
chrome/browser/ui/app_list/search/search_controller_factory.h