Commit b0c1d50f authored by Bo Majewski's avatar Bo Majewski Committed by Chromium LUCI CQ

[File SWA]: Enabling metricsPrivate; removing fakes

Adding chrome://file-manager/* as one of the URLs allowed to use metics
private. This allows us to remove faked out metrics private from
file_manager_fakes.js

Bug: 1113981
Change-Id: Ica90a7fe5560474bde91bbd911782d5cdca57211
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2586417
Commit-Queue: Bo Majewski <majewski@chromium.org>
Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
Reviewed-by: default avatarBen Wells <benwells@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836528}
parent 243e6cd1
......@@ -76,67 +76,6 @@ window.chrome.storage = {
},
};
/** @suppress {checkTypes} */
window.chrome.metricsPrivate = {
/** @enum {string} */
MetricTypeType: {
HISTOGRAM_LINEAR: 'histogram-linear',
},
/**
* Describes the type of metric to be collected.
* @typedef {{
* metricName: string,
* type: !chrome.metricsPrivate.MetricTypeType,
* min: number,
* max: number,
* buckets: number
* }}
*/
MetricType: {},
/**
* Records a value than can range from 1 to 100.
* @param {string} metricName
* @param {number} value
*/
recordSmallCount: (metricName, value) => {},
/**
* Records a value than can range from 1 to 10,000.
* @param {string} metricName
* @param {number} value
*/
recordMediumCount: (metricName, value) => {},
/**
* Records a percentage value from 1 to 100.
* @param {string} metricName
* @param {number} value
*/
recordPercentage: (metricName, value) => {},
/**
* Records an elapsed time of no more than 10 seconds.
* @param {string} metricName
* @param {number} value Value in milliseconds.
*/
recordTime: (metricName, value) => {},
/**
* Records an action performed by the user.
* @param {string} name
*/
recordUserAction: (name) => {},
/**
* Adds a value to the given metric.
* @param {!chrome.metricsPrivate.MetricType} metric
* @param {number} value
*/
recordValue: (metricName, value) => {},
};
window.BackgroundWindowSWA = class {
constructor() {
/**
......
......@@ -312,7 +312,8 @@
"chrome://tab-search/*",
"chrome://tab-strip/*",
"chrome://welcome/*",
"chrome://profile-picker/*"
"chrome://profile-picker/*",
"chrome://file-manager/*"
]
}, {
"channel": "stable",
......
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