Bug 1513574 - Remove UAOverridesBootstrapper r=michal

Differential Revision: https://phabricator.services.mozilla.com/D14750

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Valentin Gosu 2019-09-13 17:19:26 +00:00
parent eb1e7e00fc
commit 3373450337
3 changed files with 0 additions and 41 deletions

View File

@ -1,33 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { UserAgentOverrides } = ChromeUtils.import(
"resource://gre/modules/UserAgentOverrides.jsm"
);
function UAOverridesBootstrapper() {
this.init();
}
UAOverridesBootstrapper.prototype = {
init: function uaob_init() {
Services.obs.addObserver(this, "profile-change-net-teardown");
UserAgentOverrides.init();
},
observe: function uaob_observe(aSubject, aTopic, aData) {
if (aTopic == "profile-change-net-teardown") {
Services.obs.removeObserver(this, "profile-change-net-teardown");
UserAgentOverrides.uninit();
}
},
QueryInterface: ChromeUtils.generateQI([Ci.nsIObserver]),
classID: Components.ID("{965b0ca8-155b-11e7-93ae-92361f002671}"),
};
var EXPORTED_SYMBOLS = ["UAOverridesBootstrapper"];

View File

@ -5,13 +5,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
Classes = [
{
'cid': '{965b0ca8-155b-11e7-93ae-92361f002671}',
'contract_ids': ['@mozilla.org/network/ua-overrides-bootstrapper;1'],
'jsm': 'resource://gre/modules/UAOverridesBootstrapper.jsm',
'constructor': 'UAOverridesBootstrapper',
'processes': ProcessSelector.MAIN_PROCESS_ONLY,
},
{
'cid': '{b4f96c89-5238-450c-8bda-e12c26f1d150}',
'contract_ids': ['@mozilla.org/network/well-known-opportunistic-utils;1'],

View File

@ -141,7 +141,6 @@ LOCAL_INCLUDES += [
]
EXTRA_JS_MODULES += [
'UAOverridesBootstrapper.jsm',
'WellKnownOpportunisticUtils.jsm',
]