Bug 1524688: Part 35 - Convert DownloadLegacy to static registration. r=mconley

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

--HG--
rename : toolkit/components/downloads/DownloadLegacy.js => toolkit/components/downloads/DownloadLegacy.jsm
extra : rebase_source : 9b34e83ca09edd4dd9f98ebd26009b16fbd034f5
This commit is contained in:
Kris Maglione 2019-01-30 10:38:55 -08:00
Родитель 46ea164af5
Коммит 14f91460b3
6 изменённых файлов: 20 добавлений и 15 удалений

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

@ -191,8 +191,6 @@
@RESPATH@/browser/components/EnterprisePolicies.js
@RESPATH@/browser/components/EnterprisePoliciesContent.js
@RESPATH@/browser/components/EnterprisePolicies.manifest
@RESPATH@/components/Downloads.manifest
@RESPATH@/components/DownloadLegacy.js
@RESPATH@/components/crashmonitor.manifest
@RESPATH@/components/nsCrashMonitor.js
@RESPATH@/components/toolkitsearch.manifest

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

@ -169,9 +169,6 @@
@BINPATH@/components/nsAsyncShutdown.manifest
@BINPATH@/components/nsAsyncShutdown.js
@BINPATH@/components/Downloads.manifest
@BINPATH@/components/DownloadLegacy.js
#ifndef MOZ_GECKOVIEW_JAR
@BINPATH@/components/BuiltinProviders.manifest
@BINPATH@/components/PresentationControlService.js

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

@ -14,8 +14,6 @@
"use strict";
const {XPCOMUtils} = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.defineModuleGetter(this, "Downloads",
"resource://gre/modules/Downloads.jsm");
@ -318,4 +316,4 @@ DownloadLegacyTransfer.prototype = {
_signatureInfo: null,
};
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([DownloadLegacyTransfer]);
var EXPORTED_SYMBOLS = ["DownloadLegacyTransfer"];

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

@ -1,2 +0,0 @@
component {1b4c85df-cbdd-4bb6-b04e-613caece083c} DownloadLegacy.js
contract @mozilla.org/transfer;1 {1b4c85df-cbdd-4bb6-b04e-613caece083c}

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

@ -0,0 +1,14 @@
# -*- 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': '{1b4c85df-cbdd-4bb6-b04e-613caece083c}',
'contract_ids': ['@mozilla.org/transfer;1'],
'jsm': 'resource://gre/modules/DownloadLegacy.jsm',
'constructor': 'DownloadLegacyTransfer',
},
]

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

@ -24,14 +24,10 @@ SOURCES += [
'DownloadPlatform.cpp',
]
EXTRA_COMPONENTS += [
'DownloadLegacy.js',
'Downloads.manifest',
]
EXTRA_JS_MODULES += [
'DownloadCore.jsm',
'DownloadIntegration.jsm',
'DownloadLegacy.jsm',
'DownloadList.jsm',
'DownloadPaths.jsm',
'Downloads.jsm',
@ -39,6 +35,10 @@ EXTRA_JS_MODULES += [
'DownloadUIHelper.jsm',
]
XPCOM_MANIFESTS += [
'components.conf',
]
if CONFIG['MOZ_PLACES']:
EXTRA_JS_MODULES += [
'DownloadHistory.jsm',