@@ -731,26 +731,26 @@ export class VersionController {
731
731
return result ;
732
732
}
733
733
734
- private updateVersionFrom0To1 ( ) : void {
734
+ updateVersionFrom0To1 ( ) : void {
735
735
this . clearBreakpointsWhenTooMany ( Settings . instance ( ) . createLocalSetting ( 'breakpoints' , [ ] ) , 500000 ) ;
736
736
}
737
737
738
- private updateVersionFrom1To2 ( ) : void {
738
+ updateVersionFrom1To2 ( ) : void {
739
739
Settings . instance ( ) . createSetting ( 'previouslyViewedFiles' , [ ] ) . set ( [ ] ) ;
740
740
}
741
741
742
- private updateVersionFrom2To3 ( ) : void {
742
+ updateVersionFrom2To3 ( ) : void {
743
743
Settings . instance ( ) . createSetting ( 'fileSystemMapping' , { } ) . set ( { } ) ;
744
744
removeSetting ( Settings . instance ( ) . createSetting ( 'fileMappingEntries' , [ ] ) ) ;
745
745
}
746
746
747
- private updateVersionFrom3To4 ( ) : void {
747
+ updateVersionFrom3To4 ( ) : void {
748
748
const advancedMode = Settings . instance ( ) . createSetting ( 'showHeaSnapshotObjectsHiddenProperties' , false ) ;
749
749
moduleSetting ( 'showAdvancedHeapSnapshotProperties' ) . set ( advancedMode . get ( ) ) ;
750
750
removeSetting ( advancedMode ) ;
751
751
}
752
752
753
- private updateVersionFrom4To5 ( ) : void {
753
+ updateVersionFrom4To5 ( ) : void {
754
754
const settingNames : {
755
755
[ x : string ] : string ,
756
756
} = {
@@ -804,7 +804,7 @@ export class VersionController {
804
804
}
805
805
}
806
806
807
- private updateVersionFrom5To6 ( ) : void {
807
+ updateVersionFrom5To6 ( ) : void {
808
808
const settingNames : {
809
809
[ x : string ] : string ,
810
810
} = {
@@ -844,7 +844,7 @@ export class VersionController {
844
844
}
845
845
}
846
846
847
- private updateVersionFrom6To7 ( ) : void {
847
+ updateVersionFrom6To7 ( ) : void {
848
848
const settingNames = {
849
849
sourcesPanelNavigatorSplitViewState : 'sourcesPanelNavigatorSplitViewState' ,
850
850
elementsPanelSplitViewState : 'elementsPanelSplitViewState' ,
@@ -871,10 +871,10 @@ export class VersionController {
871
871
}
872
872
}
873
873
874
- private updateVersionFrom7To8 ( ) : void {
874
+ updateVersionFrom7To8 ( ) : void {
875
875
}
876
876
877
- private updateVersionFrom8To9 ( ) : void {
877
+ updateVersionFrom8To9 ( ) : void {
878
878
const settingNames = [ 'skipStackFramesPattern' , 'workspaceFolderExcludePattern' ] ;
879
879
880
880
for ( let i = 0 ; i < settingNames . length ; ++ i ) {
@@ -895,7 +895,7 @@ export class VersionController {
895
895
}
896
896
}
897
897
898
- private updateVersionFrom9To10 ( ) : void {
898
+ updateVersionFrom9To10 ( ) : void {
899
899
// This one is localStorage specific, which is fine.
900
900
if ( ! window . localStorage ) {
901
901
return ;
@@ -907,7 +907,7 @@ export class VersionController {
907
907
}
908
908
}
909
909
910
- private updateVersionFrom10To11 ( ) : void {
910
+ updateVersionFrom10To11 ( ) : void {
911
911
const oldSettingName = 'customDevicePresets' ;
912
912
const newSettingName = 'customEmulatedDeviceList' ;
913
913
const oldSetting = Settings . instance ( ) . createSetting < unknown > ( oldSettingName , undefined ) ;
@@ -948,21 +948,21 @@ export class VersionController {
948
948
removeSetting ( oldSetting ) ;
949
949
}
950
950
951
- private updateVersionFrom11To12 ( ) : void {
951
+ updateVersionFrom11To12 ( ) : void {
952
952
this . migrateSettingsFromLocalStorage ( ) ;
953
953
}
954
954
955
- private updateVersionFrom12To13 ( ) : void {
955
+ updateVersionFrom12To13 ( ) : void {
956
956
this . migrateSettingsFromLocalStorage ( ) ;
957
957
removeSetting ( Settings . instance ( ) . createSetting ( 'timelineOverviewMode' , '' ) ) ;
958
958
}
959
959
960
- private updateVersionFrom13To14 ( ) : void {
960
+ updateVersionFrom13To14 ( ) : void {
961
961
const defaultValue = { throughput : - 1 , latency : 0 } ;
962
962
Settings . instance ( ) . createSetting ( 'networkConditions' , defaultValue ) . set ( defaultValue ) ;
963
963
}
964
964
965
- private updateVersionFrom14To15 ( ) : void {
965
+ updateVersionFrom14To15 ( ) : void {
966
966
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
967
967
// eslint-disable-next-line @typescript-eslint/no-explicit-any
968
968
const setting = Settings . instance ( ) . createLocalSetting < any > ( 'workspaceExcludedFolders' , { } ) ;
@@ -979,7 +979,7 @@ export class VersionController {
979
979
setting . set ( newValue ) ;
980
980
}
981
981
982
- private updateVersionFrom15To16 ( ) : void {
982
+ updateVersionFrom15To16 ( ) : void {
983
983
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
984
984
// eslint-disable-next-line @typescript-eslint/no-explicit-any
985
985
const setting = Settings . instance ( ) . createSetting < any > ( 'InspectorView.panelOrder' , { } ) ;
@@ -990,7 +990,7 @@ export class VersionController {
990
990
setting . set ( tabOrders ) ;
991
991
}
992
992
993
- private updateVersionFrom16To17 ( ) : void {
993
+ updateVersionFrom16To17 ( ) : void {
994
994
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
995
995
// eslint-disable-next-line @typescript-eslint/no-explicit-any
996
996
const setting = Settings . instance ( ) . createSetting < any > ( 'networkConditionsCustomProfiles' , [ ] ) ;
@@ -1010,7 +1010,7 @@ export class VersionController {
1010
1010
setting . set ( newValue ) ;
1011
1011
}
1012
1012
1013
- private updateVersionFrom17To18 ( ) : void {
1013
+ updateVersionFrom17To18 ( ) : void {
1014
1014
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
1015
1015
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1016
1016
const setting = Settings . instance ( ) . createLocalSetting < any > ( 'workspaceExcludedFolders' , { } ) ;
@@ -1032,7 +1032,7 @@ export class VersionController {
1032
1032
setting . set ( newValue ) ;
1033
1033
}
1034
1034
1035
- private updateVersionFrom18To19 ( ) : void {
1035
+ updateVersionFrom18To19 ( ) : void {
1036
1036
const defaultColumns = { status : true , type : true , initiator : true , size : true , time : true } ;
1037
1037
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
1038
1038
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1057,14 +1057,14 @@ export class VersionController {
1057
1057
removeSetting ( visibleColumnSettings ) ;
1058
1058
}
1059
1059
1060
- private updateVersionFrom19To20 ( ) : void {
1060
+ updateVersionFrom19To20 ( ) : void {
1061
1061
const oldSetting = Settings . instance ( ) . createSetting ( 'InspectorView.panelOrder' , { } ) ;
1062
1062
const newSetting = Settings . instance ( ) . createSetting ( 'panel-tabOrder' , { } ) ;
1063
1063
newSetting . set ( oldSetting . get ( ) ) ;
1064
1064
removeSetting ( oldSetting ) ;
1065
1065
}
1066
1066
1067
- private updateVersionFrom20To21 ( ) : void {
1067
+ updateVersionFrom20To21 ( ) : void {
1068
1068
const networkColumns = Settings . instance ( ) . createSetting ( 'networkLogColumns' , { } ) ;
1069
1069
const columns = ( networkColumns . get ( ) as {
1070
1070
[ x : string ] : string ,
@@ -1074,7 +1074,7 @@ export class VersionController {
1074
1074
networkColumns . set ( columns ) ;
1075
1075
}
1076
1076
1077
- private updateVersionFrom21To22 ( ) : void {
1077
+ updateVersionFrom21To22 ( ) : void {
1078
1078
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
1079
1079
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1080
1080
const breakpointsSetting = Settings . instance ( ) . createLocalSetting < any > ( 'breakpoints' , [ ] ) ;
@@ -1086,18 +1086,18 @@ export class VersionController {
1086
1086
breakpointsSetting . set ( breakpoints ) ;
1087
1087
}
1088
1088
1089
- private updateVersionFrom22To23 ( ) : void {
1089
+ updateVersionFrom22To23 ( ) : void {
1090
1090
// This update is no-op.
1091
1091
}
1092
1092
1093
- private updateVersionFrom23To24 ( ) : void {
1093
+ updateVersionFrom23To24 ( ) : void {
1094
1094
const oldSetting = Settings . instance ( ) . createSetting ( 'searchInContentScripts' , false ) ;
1095
1095
const newSetting = Settings . instance ( ) . createSetting ( 'searchInAnonymousAndContentScripts' , false ) ;
1096
1096
newSetting . set ( oldSetting . get ( ) ) ;
1097
1097
removeSetting ( oldSetting ) ;
1098
1098
}
1099
1099
1100
- private updateVersionFrom24To25 ( ) : void {
1100
+ updateVersionFrom24To25 ( ) : void {
1101
1101
const defaultColumns = { status : true , type : true , initiator : true , size : true , time : true } ;
1102
1102
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
1103
1103
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1107,7 +1107,7 @@ export class VersionController {
1107
1107
networkLogColumnsSetting . set ( columns ) ;
1108
1108
}
1109
1109
1110
- private updateVersionFrom25To26 ( ) : void {
1110
+ updateVersionFrom25To26 ( ) : void {
1111
1111
const oldSetting = Settings . instance ( ) . createSetting ( 'messageURLFilters' , { } ) ;
1112
1112
const urls = Object . keys ( oldSetting . get ( ) ) ;
1113
1113
const textFilter = urls . map ( url => `-url:${ url } ` ) . join ( ' ' ) ;
@@ -1121,7 +1121,7 @@ export class VersionController {
1121
1121
removeSetting ( oldSetting ) ;
1122
1122
}
1123
1123
1124
- private updateVersionFrom26To27 ( ) : void {
1124
+ updateVersionFrom26To27 ( ) : void {
1125
1125
function renameKeyInObjectSetting ( settingName : string , from : string , to : string ) : void {
1126
1126
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
1127
1127
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1147,14 +1147,14 @@ export class VersionController {
1147
1147
renameInStringSetting ( 'panel-selectedTab' , 'audits2' , 'audits' ) ;
1148
1148
}
1149
1149
1150
- private updateVersionFrom27To28 ( ) : void {
1150
+ updateVersionFrom27To28 ( ) : void {
1151
1151
const setting = Settings . instance ( ) . createSetting ( 'uiTheme' , 'systemPreferred' ) ;
1152
1152
if ( setting . get ( ) === 'default' ) {
1153
1153
setting . set ( 'systemPreferred' ) ;
1154
1154
}
1155
1155
}
1156
1156
1157
- private updateVersionFrom28To29 ( ) : void {
1157
+ updateVersionFrom28To29 ( ) : void {
1158
1158
function renameKeyInObjectSetting ( settingName : string , from : string , to : string ) : void {
1159
1159
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
1160
1160
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1180,7 +1180,7 @@ export class VersionController {
1180
1180
renameInStringSetting ( 'panel-selectedTab' , 'audits' , 'lighthouse' ) ;
1181
1181
}
1182
1182
1183
- private updateVersionFrom29To30 ( ) : void {
1183
+ updateVersionFrom29To30 ( ) : void {
1184
1184
// Create new location agnostic setting
1185
1185
const closeableTabSetting = Settings . instance ( ) . createSetting ( 'closeableTabs' , { } ) ;
1186
1186
@@ -1199,7 +1199,7 @@ export class VersionController {
1199
1199
removeSetting ( drawerCloseableTabSetting ) ;
1200
1200
}
1201
1201
1202
- private updateVersionFrom30To31 ( ) : void {
1202
+ updateVersionFrom30To31 ( ) : void {
1203
1203
// Remove recorder_recordings setting that was used for storing recordings
1204
1204
// by an old recorder experiment.
1205
1205
const recordingsSetting = Settings . instance ( ) . createSetting ( 'recorder_recordings' , [ ] ) ;
0 commit comments