Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1011)

Issue 906133003: app_list search results relevance scores are clamped to [0, 1] range. (Closed)

Created:
5 years, 10 months ago by Matt Giuca
Modified:
5 years, 10 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@applist-mixer-knownresult-test
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

app_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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -5 lines) Patch
M ui/app_list/search/mixer.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M ui/app_list/search/mixer_unittest.cc View 1 2 4 chunks +27 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Matt Giuca
5 years, 10 months ago (2015-02-09 03:41:33 UTC) #2
calamity
lgtm https://codereview.chromium.org/906133003/diff/40001/ui/app_list/search/mixer.cc File ui/app_list/search/mixer.cc (right): https://codereview.chromium.org/906133003/diff/40001/ui/app_list/search/mixer.cc#newcode70 ui/app_list/search/mixer.cc:70: double relevance = std::min(std::max(result->relevance(), 0.0), 1.0); Precautionary? Or ...
5 years, 10 months ago (2015-02-09 03:52:28 UTC) #3
Matt Giuca
https://codereview.chromium.org/906133003/diff/40001/ui/app_list/search/mixer.cc File ui/app_list/search/mixer.cc (right): https://codereview.chromium.org/906133003/diff/40001/ui/app_list/search/mixer.cc#newcode70 ui/app_list/search/mixer.cc:70: double relevance = std::min(std::max(result->relevance(), 0.0), 1.0); Precautionary. (We can't ...
5 years, 10 months ago (2015-02-09 04:05:29 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/906133003/60001
5 years, 10 months ago (2015-02-09 06:13:47 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-09 07:02:38 UTC) #8
commit-bot: I haz the power
5 years, 10 months ago (2015-02-09 07:03:24 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d39ded9006f4c29f814895ea5aa88bdb61c9cb0c
Cr-Commit-Position: refs/heads/master@{#315275}

Powered by Google App Engine
This is Rietveld 408576698