зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1524688: Part 61 - Convert AboutNewTabService to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18471 --HG-- rename : browser/components/newtab/aboutNewTabService.js => browser/components/newtab/AboutNewTabService.jsm extra : rebase_source : 58befd64430dafced59b67079e58a99d914d5ff2
This commit is contained in:
Родитель
04a862d41a
Коммит
eacc156e72
|
@ -361,4 +361,4 @@ AboutNewTabService.prototype = {
|
|||
},
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([AboutNewTabService]);
|
||||
var EXPORTED_SYMBOLS = ["AboutNewTabService"];
|
|
@ -1,2 +0,0 @@
|
|||
component {dfcd2adc-7867-4d3a-ba70-17501f208142} aboutNewTabService.js
|
||||
contract @mozilla.org/browser/aboutnewtab-service;1 {dfcd2adc-7867-4d3a-ba70-17501f208142}
|
|
@ -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': '{dfcd2adc-7867-4d3a-ba70-17501f208142}',
|
||||
'contract_ids': ['@mozilla.org/browser/aboutnewtab-service;1'],
|
||||
'jsm': 'resource:///modules/AboutNewTabService.jsm',
|
||||
'constructor': 'AboutNewTabService',
|
||||
},
|
||||
]
|
|
@ -19,9 +19,12 @@ XPIDL_SOURCES += [
|
|||
|
||||
XPIDL_MODULE = 'browser-newtab'
|
||||
|
||||
EXTRA_COMPONENTS += [
|
||||
'aboutNewTabService.js',
|
||||
'NewTabComponents.manifest',
|
||||
EXTRA_JS_MODULES += [
|
||||
'AboutNewTabService.jsm',
|
||||
]
|
||||
|
||||
XPCOM_MANIFESTS += [
|
||||
'components.conf',
|
||||
]
|
||||
|
||||
JAR_MANIFESTS += ['jar.mn']
|
||||
|
|
|
@ -161,8 +161,6 @@
|
|||
|
||||
; JavaScript components
|
||||
@RESPATH@/browser/components/BrowserComponents.manifest
|
||||
@RESPATH@/browser/components/aboutNewTabService.js
|
||||
@RESPATH@/browser/components/NewTabComponents.manifest
|
||||
@RESPATH@/browser/components/EnterprisePolicies.js
|
||||
@RESPATH@/browser/components/EnterprisePoliciesContent.js
|
||||
@RESPATH@/browser/components/EnterprisePolicies.manifest
|
||||
|
|
Загрузка…
Ссылка в новой задаче