Skip to content

Commit

Permalink
[Metrics] Fix histogram boundary error string
Browse files Browse the repository at this point in the history
The correct value is kMaxValue, not kLast.

Change-Id: I8abbf39f86818cf2f6b185ee20c27c2396d05c0b
Reviewed-on: https://chromium-review.googlesource.com/1032992
Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
Commit-Queue: David Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#555344}
  • Loading branch information
David Roger authored and Commit Bot committed May 2, 2018
1 parent 0f25bc6 commit ac71247
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions base/metrics/histogram_macros_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ namespace internal {
template <typename Enum, typename SFINAE = void>
struct EnumSizeTraits {
static constexpr Enum Count() {
static_assert(sizeof(Enum) == 0,
"enumerator must define kLast enumerator to use this macro!");
static_assert(
sizeof(Enum) == 0,
"enumerator must define kMaxValue enumerator to use this macro!");
return Enum();
}
};
Expand Down

0 comments on commit ac71247

Please sign in to comment.