Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: LayoutTests/inspector/user-metrics.html

Issue 1061503002: DevTools: use recordEnumeratedHistogram instead of recordActionTaken (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix inspector/user-metrics.html Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/devtools_app/InspectorFrontendHostImpl.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/user-metrics.html
diff --git a/LayoutTests/inspector/user-metrics.html b/LayoutTests/inspector/user-metrics.html
index e30dd4c0f425f4f988681aaafd560a20e3b8737d..daa963c85cf7a823c2d9dd01fcd8200611476ca3 100644
--- a/LayoutTests/inspector/user-metrics.html
+++ b/LayoutTests/inspector/user-metrics.html
@@ -8,14 +8,12 @@
function test()
{
- InspectorFrontendHost.recordActionTaken = function(actionCode)
+ InspectorFrontendHost.recordEnumeratedHistogram = function(name, code)
{
- InspectorTest.addResult("Action taken: " + nameOf(WebInspector.UserMetrics._ActionCodes, actionCode));
- }
-
- InspectorFrontendHost.recordPanelShown = function(panelCode)
- {
- InspectorTest.addResult("Panel shown: " + nameOf(WebInspector.UserMetrics._PanelCodes, panelCode));
+ if (name === "DevTools.ActionTaken")
+ InspectorTest.addResult("Action taken: " + nameOf(WebInspector.UserMetrics._ActionCodes, code));
+ else if (name === "DevTools.PanelShown")
+ InspectorTest.addResult("Panel shown: " + nameOf(WebInspector.UserMetrics._PanelCodes, code));
}
function nameOf(object, code)
« no previous file with comments | « no previous file | Source/devtools/front_end/devtools_app/InspectorFrontendHostImpl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698