Bug 1524688: Part 37 - Convert CrashService to static registration. r=mconley

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

--HG--
rename : toolkit/components/crashes/CrashService.js => toolkit/components/crashes/CrashService.jsm
extra : source : c819943ff4662c90150edcffa939d0bc4d7b99d3
This commit is contained in:
Kris Maglione 2019-01-30 10:43:16 -08:00
Родитель fdb8dd19dd
Коммит 5186d27961
5 изменённых файлов: 21 добавлений и 13 удалений

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

@ -465,8 +465,6 @@ bin/libfreebl_32int64_3.so
; [Crash Reporter]
;
#ifdef MOZ_CRASHREPORTER
@RESPATH@/components/CrashService.manifest
@RESPATH@/components/CrashService.js
#ifdef XP_MACOSX
@BINPATH@/crashreporter.app/
#else

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

@ -8,9 +8,7 @@ ChromeUtils.import("resource://gre/modules/AppConstants.jsm", this);
ChromeUtils.import("resource://gre/modules/AsyncShutdown.jsm", this);
const {parseKeyValuePairs} = ChromeUtils.import("resource://gre/modules/KeyValueParser.jsm");
ChromeUtils.import("resource://gre/modules/osfile.jsm", this);
ChromeUtils.import("resource://gre/modules/PromiseUtils.jsm", this);
ChromeUtils.import("resource://gre/modules/Services.jsm", this);
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm", this);
// Set to true if the application is quitting
var gQuitting = false;
@ -263,4 +261,4 @@ CrashService.prototype = Object.freeze({
},
});
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([CrashService]);
var EXPORTED_SYMBOLS = ["CrashService"];

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

@ -1,3 +0,0 @@
component {92668367-1b17-4190-86b2-1061b2179744} CrashService.js
contract @mozilla.org/crashservice;1 {92668367-1b17-4190-86b2-1061b2179744}
category profile-after-change CrashService @mozilla.org/crashservice;1

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

@ -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': '{92668367-1b17-4190-86b2-1061b2179744}',
'contract_ids': ['@mozilla.org/crashservice;1'],
'jsm': 'resource://gre/modules/CrashService.jsm',
'constructor': 'CrashService',
'categories': {'profile-after-change': 'CrashService'},
},
]

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

@ -16,13 +16,13 @@ XPIDL_SOURCES += [
]
if CONFIG['MOZ_CRASHREPORTER']:
EXTRA_COMPONENTS += [
'CrashService.js',
'CrashService.manifest',
]
EXTRA_JS_MODULES += [
'CrashManager.jsm',
'CrashService.jsm',
]
XPCOM_MANIFESTS += [
'components.conf',
]
TESTING_JS_MODULES += [