mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
[PM-24796] Build the ConfigService before it is used during the construction of the DefaultSdkClientService (#16300)
This commit is contained in:
@@ -777,6 +777,25 @@ export default class MainBackground {
|
|||||||
this.stateProvider,
|
this.stateProvider,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.authService = new AuthService(
|
||||||
|
this.accountService,
|
||||||
|
this.messagingService,
|
||||||
|
this.keyService,
|
||||||
|
this.apiService,
|
||||||
|
this.stateService,
|
||||||
|
this.tokenService,
|
||||||
|
);
|
||||||
|
|
||||||
|
this.configApiService = new ConfigApiService(this.apiService);
|
||||||
|
|
||||||
|
this.configService = new DefaultConfigService(
|
||||||
|
this.configApiService,
|
||||||
|
this.environmentService,
|
||||||
|
this.logService,
|
||||||
|
this.stateProvider,
|
||||||
|
this.authService,
|
||||||
|
);
|
||||||
|
|
||||||
const sdkClientFactory = flagEnabled("sdk")
|
const sdkClientFactory = flagEnabled("sdk")
|
||||||
? new DefaultSdkClientFactory()
|
? new DefaultSdkClientFactory()
|
||||||
: new NoopSdkClientFactory();
|
: new NoopSdkClientFactory();
|
||||||
@@ -839,25 +858,6 @@ export default class MainBackground {
|
|||||||
this.authRequestApiService,
|
this.authRequestApiService,
|
||||||
);
|
);
|
||||||
|
|
||||||
this.authService = new AuthService(
|
|
||||||
this.accountService,
|
|
||||||
this.messagingService,
|
|
||||||
this.keyService,
|
|
||||||
this.apiService,
|
|
||||||
this.stateService,
|
|
||||||
this.tokenService,
|
|
||||||
);
|
|
||||||
|
|
||||||
this.configApiService = new ConfigApiService(this.apiService);
|
|
||||||
|
|
||||||
this.configService = new DefaultConfigService(
|
|
||||||
this.configApiService,
|
|
||||||
this.environmentService,
|
|
||||||
this.logService,
|
|
||||||
this.stateProvider,
|
|
||||||
this.authService,
|
|
||||||
);
|
|
||||||
|
|
||||||
this.billingAccountProfileStateService = new DefaultBillingAccountProfileStateService(
|
this.billingAccountProfileStateService = new DefaultBillingAccountProfileStateService(
|
||||||
this.stateProvider,
|
this.stateProvider,
|
||||||
this.platformUtilsService,
|
this.platformUtilsService,
|
||||||
|
|||||||
Reference in New Issue
Block a user