зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1353848 - Add the 'searchresults' category to the telemetry histogram bucket list. r=mconley
We need to run toLowerCase() on the category name because the searchresults category is actually searchResults. MozReview-Commit-ID: 1AgSULER7N4 --HG-- extra : rebase_source : 64dd5aa30cf03666c829c3a8bd1aafa2d1f61860
This commit is contained in:
Родитель
b3dc11cee9
Коммит
017442145e
|
@ -119,6 +119,7 @@ function init_dynamic_padding() {
|
|||
}
|
||||
|
||||
function telemetryBucketForCategory(category) {
|
||||
category = category.toLowerCase();
|
||||
switch (category) {
|
||||
case "applications":
|
||||
case "advanced":
|
||||
|
@ -126,6 +127,7 @@ function telemetryBucketForCategory(category) {
|
|||
case "general":
|
||||
case "privacy":
|
||||
case "sync":
|
||||
case "searchresults":
|
||||
return category;
|
||||
default:
|
||||
return "unknown";
|
||||
|
|
Загрузка…
Ссылка в новой задаче