Skip to content
11 changes: 7 additions & 4 deletions apps/browser/src/background/main.background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -912,11 +912,10 @@ export default class MainBackground {
this.passwordStrengthService = new PasswordStrengthService();

this.passwordGenerationService = legacyPasswordGenerationServiceFactory(
this.encryptService,
this.keyService,
this.policyService,
this.accountService,
this.stateProvider,
this.sdkService,
);

this.devicesApiService = new DevicesApiServiceImplementation(this.apiService);
Expand Down Expand Up @@ -1147,7 +1146,11 @@ export default class MainBackground {

this.importMetadataService = new DefaultImportMetadataService(
createSystemServiceProvider(
new KeyServiceLegacyEncryptorProvider(this.encryptService, this.keyService),
new KeyServiceLegacyEncryptorProvider(
this.encryptService,
this.keyService,
this.sdkService,
),
this.stateProvider,
this.policyService,
buildExtensionRegistry(),
Expand Down Expand Up @@ -1481,7 +1484,7 @@ export default class MainBackground {
this.apiService,
this.i18nService,
this.keyService,
this.encryptService,
this.sdkService,
this.policyService,
this.accountService,
this.stateProvider,
Expand Down
9 changes: 6 additions & 3 deletions apps/cli/src/service-container/service-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,11 +731,10 @@ export class ServiceContainer {
this.passwordStrengthService = new PasswordStrengthService();

this.passwordGenerationService = legacyPasswordGenerationServiceFactory(
this.encryptService,
this.keyService,
this.policyService,
this.accountService,
this.stateProvider,
this.sdkService,
);

this.authRequestApiService = new DefaultAuthRequestApiService(this.apiService, this.logService);
Expand Down Expand Up @@ -951,7 +950,11 @@ export class ServiceContainer {

this.importMetadataService = new DefaultImportMetadataService(
createSystemServiceProvider(
new KeyServiceLegacyEncryptorProvider(this.encryptService, this.keyService),
new KeyServiceLegacyEncryptorProvider(
this.encryptService,
this.keyService,
this.sdkService,
),
this.stateProvider,
this.policyService,
buildExtensionRegistry(),
Expand Down
12 changes: 3 additions & 9 deletions libs/angular/src/services/jslib-services.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,18 +793,12 @@ const safeProviders: SafeProvider[] = [
safeProvider({
provide: PasswordGenerationServiceAbstraction,
useFactory: legacyPasswordGenerationServiceFactory,
deps: [
EncryptService,
KeyService,
PolicyServiceAbstraction,
AccountServiceAbstraction,
StateProvider,
],
deps: [PolicyServiceAbstraction, AccountServiceAbstraction, StateProvider, SdkService],
}),
safeProvider({
provide: GeneratorHistoryService,
useClass: LocalGeneratorHistoryService,
deps: [EncryptService, KeyService, StateProvider],
deps: [StateProvider, SdkService],
}),
safeProvider({
provide: UsernameGenerationServiceAbstraction,
Expand All @@ -813,7 +807,7 @@ const safeProviders: SafeProvider[] = [
ApiServiceAbstraction,
I18nServiceAbstraction,
KeyService,
EncryptService,
SdkService,
PolicyServiceAbstraction,
AccountServiceAbstraction,
StateProvider,
Expand Down
Loading
Loading