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

Issue 2801613002: Allow UmaHistogramEnumeration to be used with enum classes. (Closed)

Created:
3 years, 8 months ago by benwells
Modified:
3 years, 8 months ago
Reviewers:
Ilya Sherman, dcheng
CC:
chromium-reviews, danakj+watch_chromium.org, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow UmaHistogramEnumeration to be used with enum classes. This change allows the UmaHistogramEnumeration function to be used with enum classes and not produce compile errors. BUG=None Review-Url: https://codereview.chromium.org/2801613002 Cr-Commit-Position: refs/heads/master@{#462401} Committed: https://chromium.googlesource.com/chromium/src/+/1392ff9f43c86c539e53e698674693ef11c029da

Patch Set 1 #

Total comments: 2

Patch Set 2 : With DCHECKs #

Total comments: 4

Patch Set 3 : dcheng magic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M base/metrics/histogram_functions.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 27 (17 generated)
benwells
This is pulled out from https://codereview.chromium.org/2791193002/. Daniel - Ilya mentioned you are working on something ...
3 years, 8 months ago (2017-04-05 11:09:23 UTC) #6
dcheng
LGTM with a nit https://codereview.chromium.org/2801613002/diff/1/base/metrics/histogram_functions.h File base/metrics/histogram_functions.h (right): https://codereview.chromium.org/2801613002/diff/1/base/metrics/histogram_functions.h#newcode46 base/metrics/histogram_functions.h:46: return UmaHistogramExactLinear(name, static_cast<int>(sample), Nit: it ...
3 years, 8 months ago (2017-04-05 17:12:13 UTC) #7
Ilya Sherman
LGTM, thanks.
3 years, 8 months ago (2017-04-05 19:33:41 UTC) #8
benwells
dcheng: I'd like feedback on how I fixed the nit, so please have another look. ...
3 years, 8 months ago (2017-04-06 07:30:01 UTC) #11
benwells
https://codereview.chromium.org/2801613002/diff/20001/base/metrics/histogram_functions.h File base/metrics/histogram_functions.h (right): https://codereview.chromium.org/2801613002/diff/20001/base/metrics/histogram_functions.h#newcode49 base/metrics/histogram_functions.h:49: DCHECK_LE(sample, max); On 2017/04/06 07:30:01, benwells wrote: > How ...
3 years, 8 months ago (2017-04-06 07:40:24 UTC) #14
dcheng
On 2017/04/06 07:40:24, benwells wrote: > https://codereview.chromium.org/2801613002/diff/20001/base/metrics/histogram_functions.h > File base/metrics/histogram_functions.h (right): > > https://codereview.chromium.org/2801613002/diff/20001/base/metrics/histogram_functions.h#newcode49 > ...
3 years, 8 months ago (2017-04-06 07:47:05 UTC) #15
benwells
https://codereview.chromium.org/2801613002/diff/20001/base/metrics/histogram_functions.h File base/metrics/histogram_functions.h (right): https://codereview.chromium.org/2801613002/diff/20001/base/metrics/histogram_functions.h#newcode49 base/metrics/histogram_functions.h:49: DCHECK_LE(sample, max); On 2017/04/06 07:47:05, dcheng wrote: > On ...
3 years, 8 months ago (2017-04-06 08:16:48 UTC) #17
dcheng
On 2017/04/06 08:16:48, benwells wrote: > https://codereview.chromium.org/2801613002/diff/20001/base/metrics/histogram_functions.h > File base/metrics/histogram_functions.h (right): > > https://codereview.chromium.org/2801613002/diff/20001/base/metrics/histogram_functions.h#newcode49 > ...
3 years, 8 months ago (2017-04-06 08:19:58 UTC) #19
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/2801613002/40001
3 years, 8 months ago (2017-04-06 09:21:01 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 09:25:33 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/1392ff9f43c86c539e53e6986746...

Powered by Google App Engine
This is Rietveld 408576698