From 131f90f69617df20d5a1a084b11fc01f4b94e85c Mon Sep 17 00:00:00 2001 From: Ryan VanderMeulen Date: Tue, 29 Apr 2014 21:41:03 -0400 Subject: [PATCH] Backed out changeset eba1f5d0a908 (bug 864395) for Gaia integration test failures. CLOSED TREE --- b2g/chrome/content/settings.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/b2g/chrome/content/settings.js b/b2g/chrome/content/settings.js index f310beece69..783a46baabd 100644 --- a/b2g/chrome/content/settings.js +++ b/b2g/chrome/content/settings.js @@ -632,33 +632,6 @@ SettingsListener.observe('apz.displayport.heuristics', 'default', function(value } }); -// =================== Telemetry ====================== -(function setupTelemetrySettings() { - let gaiaSettingName = 'debug.performance_data.shared'; - let geckoPrefName = 'toolkit.telemetry.enabled'; - SettingsListener.observe(gaiaSettingName, null, function(value) { - if (value !== null) { - // Gaia setting has been set; update Gecko pref to that. - Services.prefs.setBoolPref(geckoPrefName, value); - return; - } - // Gaia setting has not been set; set the gaia setting to default. -#ifdef MOZ_TELEMETRY_ON_BY_DEFAULT - let prefValue = true; -#else - let prefValue = false; -#endif - try { - prefValue = Services.prefs.getBoolPref(geckoPrefName); - } catch (e) { - // Pref not set; use default value. - } - let setting = {}; - setting[gaiaSettingName] = prefValue; - window.navigator.mozSettings.createLock().set(setting); - }); -})(); - // =================== Various simple mapping ====================== let settingsToObserve = { 'ril.mms.retrieval_mode': {