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

Issue 2419013003: [NTP Snippets] Report the share of the UI lang vs. the top non-UI lang (Closed)

Created:
4 years, 2 months ago by jkrcal
Modified:
4 years, 2 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP Snippets] Report the share of the UI lang vs. the top non-UI lang In requests to content suggestions server, we send the frequency of use of the UI language and the top non-UI language. This CL introduces reporting of the ratio of these two frequencies. This allows to see how often (and how much) the UI language is inappropriate. BUG=656011 Committed: https://crrev.com/caa3c1cbea3a8de6603ad2f1e59d14224f4167f1 Cr-Commit-Position: refs/heads/master@{#425656}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Comments of Marc and Alexei #

Patch Set 3 : Pretty-print histograms.xml #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M components/ntp_snippets/remote/ntp_snippets_fetcher.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
jkrcal
Marc, could you PTAL? Alexei, could you PTAL at histograms.xml?
4 years, 2 months ago (2016-10-14 14:42:30 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/2419013003/diff/1/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2419013003/diff/1/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode554 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:554: UMA_HISTOGRAM_COUNTS_1000( I think you probably want to use UMA_HISTOGRAM_PERCENT ...
4 years, 2 months ago (2016-10-14 15:30:15 UTC) #5
Marc Treib
https://codereview.chromium.org/2419013003/diff/1/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2419013003/diff/1/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode550 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:550: DCHECK(params->other_top_language.frequency > 0) DCHECK_GT https://codereview.chromium.org/2419013003/diff/1/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode553 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:553: params->ui_language.frequency / params->other_top_language.frequency; ...
4 years, 2 months ago (2016-10-14 15:32:56 UTC) #6
jkrcal
Thanks to both of you! PTAL, again. https://codereview.chromium.org/2419013003/diff/1/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2419013003/diff/1/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode550 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:550: DCHECK(params->other_top_language.frequency > ...
4 years, 2 months ago (2016-10-14 16:34:15 UTC) #9
Alexei Svitkine (slow)
lgtm
4 years, 2 months ago (2016-10-14 21:34:53 UTC) #10
Marc Treib
lgtm
4 years, 2 months ago (2016-10-17 07:45:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2419013003/40001
4 years, 2 months ago (2016-10-17 10:15:13 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-17 11:16:22 UTC) #19
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 11:18:48 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/caa3c1cbea3a8de6603ad2f1e59d14224f4167f1
Cr-Commit-Position: refs/heads/master@{#425656}

Powered by Google App Engine
This is Rietveld 408576698