Bug 1319788 - fix typo in getting a telemetry histogram, r=mak
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 23 Nov 2016 14:47:55 +0000
changeset 323992 630e0a8c32415056e8770c37706f4d18d5fcea73
parent 323991 e5192843bc0771fc01e0328cef7a30d870839d6e
child 323993 cb894821cf44307be0414014e46f16d8bf9aab11
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersmak
bugs1319788
milestone53.0a1
Bug 1319788 - fix typo in getting a telemetry histogram, r=mak MozReview-Commit-ID: 22CFX0Ueo1q
browser/components/migration/MigrationUtils.jsm
--- a/browser/components/migration/MigrationUtils.jsm
+++ b/browser/components/migration/MigrationUtils.jsm
@@ -256,17 +256,17 @@ this.MigratorPrototype = {
       }
     };
 
     let collectQuantityTelemetry = () => {
       try {
         for (let resourceType of Object.keys(MigrationUtils._importQuantities)) {
           let histogramId =
             "FX_MIGRATION_" + resourceType.toUpperCase() + "_QUANTITY";
-          let histogram = Services.telemetry.getKeyedHistogram(histogramId);
+          let histogram = Services.telemetry.getKeyedHistogramById(histogramId);
           histogram.add(this.getKey(), MigrationUtils._importQuantities[resourceType]);
         }
       } catch (ex) { /* Telemetry is exception-happy */ }
     };
 
     // Called either directly or through the bookmarks import callback.
     let doMigrate = Task.async(function*() {
       let resourcesGroupedByItems = new Map();