| Index: webkit/glue/webkitplatformsupport_impl.cc
|
| diff --git a/webkit/glue/webkitplatformsupport_impl.cc b/webkit/glue/webkitplatformsupport_impl.cc
|
| index 5c8127960645a165a080c422dc17fdd620fc4cb8..2db8af0d4535dc9a5fda223f72f3588072fb5298 100644
|
| --- a/webkit/glue/webkitplatformsupport_impl.cc
|
| +++ b/webkit/glue/webkitplatformsupport_impl.cc
|
| @@ -15,6 +15,7 @@
|
| #include "base/memory/singleton.h"
|
| #include "base/message_loop.h"
|
| #include "base/metrics/histogram.h"
|
| +#include "base/metrics/sparse_histogram.h"
|
| #include "base/metrics/stats_counters.h"
|
| #include "base/platform_file.h"
|
| #include "base/process_util.h"
|
| @@ -443,6 +444,12 @@ void WebKitPlatformSupportImpl::histogramEnumeration(
|
| counter->Add(sample);
|
| }
|
|
|
| +void WebKitPlatformSupportImpl::histogramSparse(const char* name, int sample) {
|
| + // For sparse histograms, we can use the macro, as it does not incorporate a
|
| + // static.
|
| + UMA_HISTOGRAM_SPARSE_SLOWLY(name, sample);
|
| +}
|
| +
|
| const unsigned char* WebKitPlatformSupportImpl::getTraceCategoryEnabledFlag(
|
| const char* category_group) {
|
| return TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(category_group);
|
|
|