Chromium Code Reviews| Index: third_party/WebKit/Source/platform/Histogram.h |
| diff --git a/third_party/WebKit/Source/platform/Histogram.h b/third_party/WebKit/Source/platform/Histogram.h |
| index 190149eb1ecbe6d2b93984450ab958e476576866..69269b2c6d4058cf979934c511e232cf21ff50e2 100644 |
| --- a/third_party/WebKit/Source/platform/Histogram.h |
| +++ b/third_party/WebKit/Source/platform/Histogram.h |
| @@ -10,6 +10,7 @@ |
| #include "base/metrics/histogram_macros.h" |
| #include "platform/PlatformExport.h" |
| #include "platform/wtf/CurrentTime.h" |
| +#include "public/platform/WebFeature.h" |
| namespace base { |
| class HistogramBase; |
| @@ -25,6 +26,9 @@ class PLATFORM_EXPORT CustomCountHistogram { |
| base::HistogramBase::Sample max, |
| int32_t bucket_count); |
| void Count(base::HistogramBase::Sample); |
| + void Count(WebFeature feature) { |
| + return Count(static_cast<base::HistogramBase::Sample>(feature)); |
|
Rick Byers
2017/05/25 01:53:24
This class is intended to be a generic part of the
|
| + } |
| protected: |
| explicit CustomCountHistogram(base::HistogramBase*); |