Commit 1f033c4e authored by Jack Lynch's avatar Jack Lynch Committed by Commit Bot

DevTools: Increase maximum histogram enum size

This CL increases the maximum enum size accepted by
DevToolsUIBindings::RecordEnumeratedHistogram from 100 to 1000.

Bug: 1140386
Change-Id: I72ca6b48825cb4e3e681322cd6107d729a817578
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2488561Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Commit-Queue: Jack Lynch <jalyn@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#819926}
parent e4efc3aa
...@@ -1283,7 +1283,7 @@ void DevToolsUIBindings::RecordEnumeratedHistogram(const std::string& name, ...@@ -1283,7 +1283,7 @@ void DevToolsUIBindings::RecordEnumeratedHistogram(const std::string& name,
int boundary_value) { int boundary_value) {
if (!frontend_host_) if (!frontend_host_)
return; return;
if (!(boundary_value >= 0 && boundary_value <= 100 && sample >= 0 && if (!(boundary_value >= 0 && boundary_value <= 1000 && sample >= 0 &&
sample < boundary_value)) { sample < boundary_value)) {
// TODO(nick): Replace with chrome::bad_message::ReceivedBadMessage(). // TODO(nick): Replace with chrome::bad_message::ReceivedBadMessage().
frontend_host_->BadMessageReceived(); frontend_host_->BadMessageReceived();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment