Skip to content

Commit

Permalink
[DevTools] Support broken UMA metric from M49 frontend.
Browse files Browse the repository at this point in the history
This patch mitigates bad message crash due to wrong UMA metric
introduced in https://codereview.chromium.org/1520403004.
It was reverted later, but was not merged to M49.

BUG=603789

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

Cr-Commit-Position: refs/heads/master@{#387793}
  • Loading branch information
dgozman authored and Commit bot committed Apr 16, 2016
1 parent bb76f31 commit 92efcfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions third_party/WebKit/Source/devtools/front_end/devtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,9 @@ InspectorFrontendHostImpl.prototype = {
*/
recordEnumeratedHistogram: function(actionName, actionCode, bucketSize)
{
// Support for M49 frontend.
if (actionName === "DevTools.DrawerShown")
return;
DevToolsAPI.sendMessageToEmbedder("recordEnumeratedHistogram", [actionName, actionCode, bucketSize], null);
},

Expand Down

0 comments on commit 92efcfd

Please sign in to comment.