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:
Jared Wein 2017-04-05 15:40:13 -04:00
Родитель b3dc11cee9
Коммит 017442145e
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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";