mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
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 : source : 517838ee0c3cb67ecba24d826179dce8a367e628
This commit is contained in:
parent
6802f8ca3a
commit
2fb5e69cda
@ -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}
|
14
toolkit/components/downloads/components.conf
Normal file
14
toolkit/components/downloads/components.conf
Normal file
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user