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

Issue 2337103003: [NTP Snippets] Metrics: switch over known categories (Closed)

Created:
4 years, 3 months ago by Marc Treib
Modified:
4 years, 3 months ago
Reviewers:
jkrcal, Steven Holte
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] Metrics: switch over known categories This ensures that there'll be a compile error if we add a new category but don't update the metrics code. Also, add a histogram suffix for PHYSICAL_WEB_PAGES which was missing. BUG=none Committed: https://crrev.com/c15e8abfcc306443d64e4c9c60182dc0737bb03f Cr-Commit-Position: refs/heads/master@{#419420}

Patch Set 1 #

Patch Set 2 : no static set #

Total comments: 9

Patch Set 3 : review 1 #

Patch Set 4 : review 2 #

Patch Set 5 : Yay! #

Patch Set 6 : base::underlying_type :-/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -11 lines) Patch
M components/ntp_snippets/category.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M components/ntp_snippets/category.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/ntp_snippets/category_factory.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_metrics.cc View 1 2 3 4 5 2 chunks +28 lines, -11 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (17 generated)
Marc Treib
PTAL!
4 years, 3 months ago (2016-09-13 15:02:50 UTC) #4
jkrcal
https://codereview.chromium.org/2337103003/diff/20001/components/ntp_snippets/category.cc File components/ntp_snippets/category.cc (right): https://codereview.chromium.org/2337103003/diff/20001/components/ntp_snippets/category.cc#newcode21 components/ntp_snippets/category.cc:21: static_cast<int>(KnownCategories::ARTICLES)}; I am just wondering: Cannot you add to ...
4 years, 3 months ago (2016-09-13 16:08:06 UTC) #5
Marc Treib
https://codereview.chromium.org/2337103003/diff/20001/components/ntp_snippets/category.cc File components/ntp_snippets/category.cc (right): https://codereview.chromium.org/2337103003/diff/20001/components/ntp_snippets/category.cc#newcode21 components/ntp_snippets/category.cc:21: static_cast<int>(KnownCategories::ARTICLES)}; On 2016/09/13 16:08:05, jkrcal wrote: > I am ...
4 years, 3 months ago (2016-09-13 16:28:51 UTC) #6
jkrcal
lgtm inspite of the ongoing discussion below. Feel free to continue discussing / adapt the ...
4 years, 3 months ago (2016-09-13 17:22:28 UTC) #7
tschumann
https://codereview.chromium.org/2337103003/diff/20001/components/ntp_snippets/category.cc File components/ntp_snippets/category.cc (right): https://codereview.chromium.org/2337103003/diff/20001/components/ntp_snippets/category.cc#newcode21 components/ntp_snippets/category.cc:21: static_cast<int>(KnownCategories::ARTICLES)}; On 2016/09/13 17:22:27, jkrcal wrote: > On 2016/09/13 ...
4 years, 3 months ago (2016-09-14 08:41:35 UTC) #8
Marc Treib
https://codereview.chromium.org/2337103003/diff/20001/components/ntp_snippets/category.cc File components/ntp_snippets/category.cc (right): https://codereview.chromium.org/2337103003/diff/20001/components/ntp_snippets/category.cc#newcode21 components/ntp_snippets/category.cc:21: static_cast<int>(KnownCategories::ARTICLES)}; On 2016/09/13 17:22:27, jkrcal wrote: > On 2016/09/13 ...
4 years, 3 months ago (2016-09-14 08:42:20 UTC) #9
Marc Treib
On 2016/09/14 08:41:35, tschumann wrote: > https://codereview.chromium.org/2337103003/diff/20001/components/ntp_snippets/category.cc > File components/ntp_snippets/category.cc (right): > > https://codereview.chromium.org/2337103003/diff/20001/components/ntp_snippets/category.cc#newcode21 > ...
4 years, 3 months ago (2016-09-14 08:45:37 UTC) #10
Marc Treib
One other alternative, brought up by Mikel: Just cast the int to an enum, then ...
4 years, 3 months ago (2016-09-14 12:26:42 UTC) #11
tschumann
On 2016/09/14 12:26:42, Marc Treib wrote: > One other alternative, brought up by Mikel: Just ...
4 years, 3 months ago (2016-09-14 13:23:34 UTC) #12
Marc Treib
On 2016/09/14 13:23:34, tschumann wrote: > On 2016/09/14 12:26:42, Marc Treib wrote: > > One ...
4 years, 3 months ago (2016-09-14 13:33:56 UTC) #13
jkrcal
On 2016/09/14 13:33:56, Marc Treib wrote: > On 2016/09/14 13:23:34, tschumann wrote: > > On ...
4 years, 3 months ago (2016-09-14 13:48:47 UTC) #14
Marc Treib
After some more investigation: It *is* in fact legal to cast from int to enum ...
4 years, 3 months ago (2016-09-16 14:02:59 UTC) #17
Marc Treib
+holte for histograms.xml. PTAL!
4 years, 3 months ago (2016-09-16 14:03:26 UTC) #19
jkrcal
On 2016/09/16 14:02:59, Marc Treib wrote: > After some more investigation: It *is* in fact ...
4 years, 3 months ago (2016-09-16 16:26:08 UTC) #24
Steven Holte
lgtm
4 years, 3 months ago (2016-09-16 18:52:21 UTC) #27
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/2337103003/100001
4 years, 3 months ago (2016-09-19 08:18:11 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-19 09:09:20 UTC) #33
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 09:11:05 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c15e8abfcc306443d64e4c9c60182dc0737bb03f
Cr-Commit-Position: refs/heads/master@{#419420}

Powered by Google App Engine
This is Rietveld 408576698