DevTools: introduce RecordEnumeratedHistogram method.
commitfc94461996881d54083195fab9721fb738bb83f4
authorlushnikov <lushnikov@chromium.org>
Wed, 8 Apr 2015 12:28:58 +0000 (8 05:28 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Apr 2015 12:29:50 +0000 (8 12:29 +0000)
treed0ef7b5dcec5f2e330955c0782387ff54e8c0d95
parentc9f6f551ae9086ce65fb1ad04cc030c2e540e6ba
DevTools: introduce RecordEnumeratedHistogram method.

ATM there is a recordActionUMA method in devtools_ui_bindings which is
responsible for UMA metrics. However, the method hard-codes the bucket
sizes, which is unfortunate.

The patch introduces new RecordEnumeratedHistogram method which gets
bucket sizes as an argument.

R=dgozman
BUG=468026

Review URL: https://codereview.chromium.org/1056073003

Cr-Commit-Position: refs/heads/master@{#324219}
chrome/browser/devtools/devtools_embedder_message_dispatcher.cc
chrome/browser/devtools/devtools_embedder_message_dispatcher.h
chrome/browser/devtools/devtools_ui_bindings.cc
chrome/browser/devtools/devtools_ui_bindings.h
content/browser/bad_message.h
content/browser/devtools/devtools_frontend_host_impl.cc
content/browser/devtools/devtools_frontend_host_impl.h
content/public/browser/devtools_frontend_host.h
tools/metrics/histograms/histograms.xml