Bug 1524688: Part 25 - Convert PageThumbsComponents to static registration. r=adw

--HG--
rename : toolkit/components/thumbnails/PageThumbsStorageService.js => toolkit/components/thumbnails/PageThumbsStorageService.jsm
extra : source : 18f156d6355adadcce5dbb98ed9a9415e52a9684
This commit is contained in:
Kris Maglione 2019-01-29 21:23:45 -08:00
parent 6273e7bb62
commit 3690a74cdd
5 changed files with 9 additions and 10 deletions

View File

@ -193,7 +193,6 @@
@RESPATH@/browser/components/EnterprisePolicies.manifest
@RESPATH@/components/Downloads.manifest
@RESPATH@/components/DownloadLegacy.js
@RESPATH@/components/PageThumbsComponents.manifest
@RESPATH@/components/crashmonitor.manifest
@RESPATH@/components/nsCrashMonitor.js
@RESPATH@/components/toolkitsearch.manifest
@ -210,7 +209,6 @@
@RESPATH@/components/nsUpdateService.manifest
#endif
@RESPATH@/components/ProcessSingleton.manifest
@RESPATH@/components/PageThumbsStorageService.js
@RESPATH@/components/mozProtocolHandler.js
@RESPATH@/components/mozProtocolHandler.manifest
@RESPATH@/components/nsDefaultCLH.manifest

View File

@ -1,2 +0,0 @@
component {97943eec-0e48-49ef-b7b7-cf4aa0109bb6} PageThumbsStorageService.js
contract @mozilla.org/thumbnails/pagethumbs-service;1 {97943eec-0e48-49ef-b7b7-cf4aa0109bb6}

View File

@ -57,4 +57,4 @@ PageThumbsStorageService.prototype = {
};
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([PageThumbsStorageService]);
var EXPORTED_SYMBOLS = ["PageThumbsStorageService"];

View File

@ -11,4 +11,11 @@ Classes = [
'type': 'PageThumbsProtocol',
'headers': ['/toolkit/components/thumbnails/PageThumbsProtocol.h'],
},
{
'cid': '{97943eec-0e48-49ef-b7b7-cf4aa0109bb6}',
'contract_ids': ['@mozilla.org/thumbnails/pagethumbs-service;1'],
'jsm': 'resource://gre/modules/PageThumbsStorageService.jsm',
'constructor': 'PageThumbsStorageService',
},
]

View File

@ -10,14 +10,10 @@ with Files('**'):
BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
XPCSHELL_TESTS_MANIFESTS += ['test/xpcshell.ini']
EXTRA_COMPONENTS += [
'PageThumbsComponents.manifest',
'PageThumbsStorageService.js',
]
EXTRA_JS_MODULES += [
'BackgroundPageThumbs.jsm',
'PageThumbs.jsm',
'PageThumbsStorageService.jsm',
'PageThumbsWorker.js',
'PageThumbUtils.jsm',
]