[MagicStack] Use freshness score for ranking.
In this CL, the following changes are made:
1. Add feature SegmentationPlatformAndroidHomeModuleRanker in
chrome://flags.
2. Create InputContext when ranking home modules if
"use_freshness_score" param is enabled.
3. Refactor to always filter the enabled module list before ranking.
This allows to keep the heuristic logic only in
#getFilteredEnabledModuleSet().
Bug: 41485537
Change-Id: I7fca605204174df4c7db038f588ec6cf6121553c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5484726
Commit-Queue: Xi Han <hanxi@chromium.org>
Reviewed-by: Ritika Gupta <ritikagup@google.com>
Cr-Commit-Position: refs/heads/main@{#1293225}
NOKEYCHECK=True
GitOrigin-RevId: 2b733d871d275a7550ccbd68aedd16b1d4243f2c
1 file changed