Bug 1319788 - fix typo in getting a telemetry histogram, r=mak a=gchang
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 23 Nov 2016 14:47:55 +0000
changeset 352622 7f611a717df6bf178b2cab2da4ef8c005f80da8a
parent 352621 5cac2e6569d00933d7bf9046cbf9f2a57203ab52
child 352623 059e67e9c49a8070750d850aa336694f3ae819df
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak, gchang
bugs1319788
milestone52.0a2
Bug 1319788 - fix typo in getting a telemetry histogram, r=mak a=gchang 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();