Chromium Code Reviews| Index: base/metrics/histogram_functions.h |
| diff --git a/base/metrics/histogram_functions.h b/base/metrics/histogram_functions.h |
| index 58fc30173c6ea17480175440202c384b96661261..851171e4a5db3a6709e6261c3f1d5727d20ae4a1 100644 |
| --- a/base/metrics/histogram_functions.h |
| +++ b/base/metrics/histogram_functions.h |
| @@ -43,7 +43,8 @@ template <typename T> |
| void UmaHistogramEnumeration(const std::string& name, T sample, T max) { |
| static_assert(std::is_enum<T>::value, |
| "Non enum passed to UmaHistogramEnumeration"); |
| - return UmaHistogramExactLinear(name, static_cast<int>(sample), max); |
| + return UmaHistogramExactLinear(name, static_cast<int>(sample), |
| + static_cast<int>(max)); |
|
Ilya Sherman
2017/04/04 16:37:55
I'd prefer that you make this change in a separate
|
| } |
| // For adding boolean sample to histogram. |