Bug 1524688: Part 36 - Convert nsCrashMonitor to static registration. r=mconley

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

--HG--
rename : toolkit/components/crashmonitor/nsCrashMonitor.js => toolkit/components/crashmonitor/nsCrashMonitor.jsm
extra : rebase_source : b83120741bcc21c5c61f2611ed05a86075ced2b1
This commit is contained in:
Kris Maglione 2019-01-30 10:41:14 -08:00
Родитель 14f91460b3
Коммит dac8038c04
5 изменённых файлов: 19 добавлений и 11 удалений

Просмотреть файл

@ -191,8 +191,6 @@
@RESPATH@/browser/components/EnterprisePolicies.js
@RESPATH@/browser/components/EnterprisePoliciesContent.js
@RESPATH@/browser/components/EnterprisePolicies.manifest
@RESPATH@/components/crashmonitor.manifest
@RESPATH@/components/nsCrashMonitor.js
@RESPATH@/components/toolkitsearch.manifest
#ifdef NIGHTLY_BUILD
@RESPATH@/browser/components/payments.manifest

Просмотреть файл

@ -0,0 +1,15 @@
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.
Classes = [
{
'cid': '{d9d75e86-8f17-4c57-993e-f738f0d86d42}',
'contract_ids': ['@mozilla.org/toolkit/crashmonitor;1'],
'jsm': 'resource://gre/modules/nsCrashMonitor.jsm',
'constructor': 'CrashMonitor',
'categories': {'profile-after-change': 'CrashMonitor'},
},
]

Просмотреть файл

@ -1,3 +0,0 @@
component {d9d75e86-8f17-4c57-993e-f738f0d86d42} nsCrashMonitor.js
contract @mozilla.org/toolkit/crashmonitor;1 {d9d75e86-8f17-4c57-993e-f738f0d86d42}
category profile-after-change CrashMonitor @mozilla.org/toolkit/crashmonitor;1

Просмотреть файл

@ -11,9 +11,9 @@ XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
EXTRA_JS_MODULES += [
'CrashMonitor.jsm',
'nsCrashMonitor.jsm',
]
EXTRA_COMPONENTS += [
'crashmonitor.manifest',
'nsCrashMonitor.js',
XPCOM_MANIFESTS += [
'components.conf',
]

Просмотреть файл

@ -2,8 +2,6 @@
* 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/. */
const {XPCOMUtils} = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
var MonitorAPI = ChromeUtils.import("resource://gre/modules/CrashMonitor.jsm").CrashMonitor;
function CrashMonitor() {}
@ -23,4 +21,4 @@ CrashMonitor.prototype = {
},
};
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([CrashMonitor]);
var EXPORTED_SYMBOLS = ["CrashMonitor"];