Commit f9cbf85d authored by vkuzkokov's avatar vkuzkokov Committed by Commit bot

[DevTools] Fix crash on console input

BUG=481127

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

Cr-Commit-Position: refs/heads/master@{#327041}
parent c2b0f720
...@@ -773,7 +773,7 @@ void DevToolsUIBindings::SendMessageToBrowser(const std::string& message) { ...@@ -773,7 +773,7 @@ void DevToolsUIBindings::SendMessageToBrowser(const std::string& message) {
void DevToolsUIBindings::RecordEnumeratedHistogram(const std::string& name, void DevToolsUIBindings::RecordEnumeratedHistogram(const std::string& name,
int sample, int sample,
int boundary_value) { int boundary_value) {
if (!(boundary_value >= 0 && boundary_value < 100 && sample >= 0 && if (!(boundary_value >= 0 && boundary_value <= 100 && sample >= 0 &&
sample < boundary_value)) { sample < boundary_value)) {
frontend_host_->BadMessageRecieved(); frontend_host_->BadMessageRecieved();
return; return;
......
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