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

Unified Diff: third_party/WebKit/Source/platform/Histogram.h

Issue 2894063002: Expose UseCounter::Feature enum out of blink as WebFeature (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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*);
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | third_party/WebKit/public/platform/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698