Bug 1154698 - Fix browser_AddonWatcher.js to use |canRecordExtended|. r=Yoric
authorAlessio Placitelli <alessio.placitelli@gmail.com>
Wed, 15 Apr 2015 08:09:00 +0200
changeset 239699 5baaa4ee1c0831188b794edc29410b10dab4c407
parent 239698 ad181e1e0b53db82ac440739fe71e295fb4635e6
child 239700 59c97d681f50ec9d45ca1afee87fbf9477367124
push id12444
push userryanvm@gmail.com
push dateFri, 17 Apr 2015 20:04:42 +0000
treeherderfx-team@560a202db924 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersYoric
bugs1154698
milestone40.0a1
Bug 1154698 - Fix browser_AddonWatcher.js to use |canRecordExtended|. r=Yoric
toolkit/modules/tests/browser/browser_AddonWatcher.js
--- a/toolkit/modules/tests/browser/browser_AddonWatcher.js
+++ b/toolkit/modules/tests/browser/browser_AddonWatcher.js
@@ -38,17 +38,17 @@ add_task(function* init() {
     addon.uninstall()
   });
 
   Services.prefs.setIntPref("browser.addon-watch.interval", 1000);
   registerCleanupFunction(() => {
     Services.prefs.clearUserPref("browser.addon-watch.interval");
   });
 
-  let oldCanRecord = Services.telemetry.canRecord;
+  let oldCanRecord = Services.telemetry.canRecordExtended;
   Services.telemetry.canRecordExtended = true;
   registerCleanupFunction(function () {
     Services.telemetry.canRecordExtended = oldCanRecord;
   });
 });
 
 // Utility function to burn some resource, trigger a reaction of the add-on watcher
 // and check both its notification and telemetry.