Descriptionapp_list search results relevance scores are clamped to [0, 1] range.
Since the scores come from an external service, they should be forced
into the [0, 1] range, instead of assuming they are in that range. (We
cannot accept any arbitrary score, because then that would allow the
service to prioritize its results over other services, and would also
break the "known results" prioritization scheme.)
BUG=456641
Committed: https://crrev.com/d39ded9006f4c29f814895ea5aa88bdb61c9cb0c
Cr-Commit-Position: refs/heads/master@{#315275}
Patch Set 1 #Patch Set 2 : Use std::min and std::max. #Patch Set 3 : Rebase. #
Total comments: 2
Patch Set 4 : Rebase. #Messages
Total messages: 9 (3 generated)
|