@@ -48,7 +48,7 @@ XPCOMUtils.defineLazyServiceGetters(lazy, {
48
48
gMIMEService : [ "@mozilla.org/mime;1" , "nsIMIMEService" ] ,
49
49
} ) ;
50
50
51
- XPCOMUtils . defineLazyGetter ( lazy , "DownloadsLogger" , ( ) => {
51
+ ChromeUtils . defineLazyGetter ( lazy , "DownloadsLogger" , ( ) => {
52
52
let { ConsoleAPI } = ChromeUtils . importESModule (
53
53
"resource://gre/modules/Console.sys.mjs"
54
54
) ;
@@ -115,7 +115,7 @@ var PrefObserver = {
115
115
kPrefBranch . addObserver ( "" , this , true ) ;
116
116
for ( let key in prefs ) {
117
117
let name = key ;
118
- XPCOMUtils . defineLazyGetter ( this , name , function ( ) {
118
+ ChromeUtils . defineLazyGetter ( this , name , function ( ) {
119
119
return PrefObserver . getPref ( name ) ;
120
120
} ) ;
121
121
}
@@ -744,10 +744,10 @@ export var DownloadsCommon = {
744
744
} ,
745
745
} ;
746
746
747
- XPCOMUtils . defineLazyGetter ( DownloadsCommon , "log" , ( ) => {
747
+ ChromeUtils . defineLazyGetter ( DownloadsCommon , "log" , ( ) => {
748
748
return lazy . DownloadsLogger . log . bind ( lazy . DownloadsLogger ) ;
749
749
} ) ;
750
- XPCOMUtils . defineLazyGetter ( DownloadsCommon , "error" , ( ) => {
750
+ ChromeUtils . defineLazyGetter ( DownloadsCommon , "error" , ( ) => {
751
751
return lazy . DownloadsLogger . error . bind ( lazy . DownloadsLogger ) ;
752
752
} ) ;
753
753
@@ -999,18 +999,18 @@ DownloadsDataCtor.prototype = {
999
999
} ,
1000
1000
} ;
1001
1001
1002
- XPCOMUtils . defineLazyGetter ( lazy , "HistoryDownloadsData" , function ( ) {
1002
+ ChromeUtils . defineLazyGetter ( lazy , "HistoryDownloadsData" , function ( ) {
1003
1003
return new DownloadsDataCtor ( { isHistory : true } ) ;
1004
1004
} ) ;
1005
1005
1006
- XPCOMUtils . defineLazyGetter ( lazy , "LimitedHistoryDownloadsData" , function ( ) {
1006
+ ChromeUtils . defineLazyGetter ( lazy , "LimitedHistoryDownloadsData" , function ( ) {
1007
1007
return new DownloadsDataCtor ( {
1008
1008
isHistory : true ,
1009
1009
maxHistoryResults : kMaxHistoryResultsForLimitedView ,
1010
1010
} ) ;
1011
1011
} ) ;
1012
1012
1013
- XPCOMUtils . defineLazyGetter (
1013
+ ChromeUtils . defineLazyGetter (
1014
1014
lazy ,
1015
1015
"LimitedPrivateHistoryDownloadData" ,
1016
1016
function ( ) {
@@ -1022,11 +1022,11 @@ XPCOMUtils.defineLazyGetter(
1022
1022
}
1023
1023
) ;
1024
1024
1025
- XPCOMUtils . defineLazyGetter ( lazy , "PrivateDownloadsData" , function ( ) {
1025
+ ChromeUtils . defineLazyGetter ( lazy , "PrivateDownloadsData" , function ( ) {
1026
1026
return new DownloadsDataCtor ( { isPrivate : true } ) ;
1027
1027
} ) ;
1028
1028
1029
- XPCOMUtils . defineLazyGetter ( lazy , "DownloadsData" , function ( ) {
1029
+ ChromeUtils . defineLazyGetter ( lazy , "DownloadsData" , function ( ) {
1030
1030
return new DownloadsDataCtor ( ) ;
1031
1031
} ) ;
1032
1032
@@ -1459,11 +1459,15 @@ Object.setPrototypeOf(
1459
1459
DownloadsViewPrototype
1460
1460
) ;
1461
1461
1462
- XPCOMUtils . defineLazyGetter ( lazy , "PrivateDownloadsIndicatorData" , function ( ) {
1463
- return new DownloadsIndicatorDataCtor ( true ) ;
1464
- } ) ;
1462
+ ChromeUtils . defineLazyGetter (
1463
+ lazy ,
1464
+ "PrivateDownloadsIndicatorData" ,
1465
+ function ( ) {
1466
+ return new DownloadsIndicatorDataCtor ( true ) ;
1467
+ }
1468
+ ) ;
1465
1469
1466
- XPCOMUtils . defineLazyGetter ( lazy , "DownloadsIndicatorData" , function ( ) {
1470
+ ChromeUtils . defineLazyGetter ( lazy , "DownloadsIndicatorData" , function ( ) {
1467
1471
return new DownloadsIndicatorDataCtor ( false ) ;
1468
1472
} ) ;
1469
1473
0 commit comments