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

Unified Diff: ui/file_manager/file_manager/foreground/js/metrics_base.js

Issue 805533003: Hook up import history to media scanner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert manifest.json. Created 6 years 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 | « ui/file_manager/file_manager/foreground/js/file_manager.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/metrics_base.js
diff --git a/ui/file_manager/file_manager/foreground/js/metrics_base.js b/ui/file_manager/file_manager/foreground/js/metrics_base.js
index 0aa935552f8261222a2488172ebf2c1eb761ee47..e6ec12377f5dbb7e1a0c407e5d8c87822e523675 100644
--- a/ui/file_manager/file_manager/foreground/js/metrics_base.js
+++ b/ui/file_manager/file_manager/foreground/js/metrics_base.js
@@ -101,6 +101,16 @@ metricsBase.recordUserAction = function(name) {
};
/**
+ * Records an elapsed time of no more than 10 seconds.
+ * @param {string} name Short metric name.
+ * @param {number} value Numeric value to be recorded in units
+ * that match the histogram definition (in histograms.xml).
+ */
+metricsBase.recordValue = function(name, value) {
+ metrics.call_('recordValue', [metrics.convertName_(name), value]);
+};
+
+/**
* Complete the time interval recording.
*
* Should be preceded by a call to startInterval with the same name. *
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/file_manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698