From 91dc9f49a53e4144a5676dd42f04887386fa6cee Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Fri, 12 Jul 2024 14:31:41 +0200 Subject: [PATCH] [PM-6188] Remove get bg service calls (#10050) * Remove ssologinservice getbgservice call * Remove deviceservice getbgservice call * Remove keyconnectorservice getbgservice call * Remove userverificationservice getbgservice call * Remove vaulttimeoutsettingservice getbgservice call * Remove devicetrustservice getbgservice call --- .../src/popup/services/services.module.ts | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/apps/browser/src/popup/services/services.module.ts b/apps/browser/src/popup/services/services.module.ts index e82eb429a5..b504996e00 100644 --- a/apps/browser/src/popup/services/services.module.ts +++ b/apps/browser/src/popup/services/services.module.ts @@ -20,18 +20,13 @@ import { JslibServicesModule } from "@bitwarden/angular/services/jslib-services. import { PinServiceAbstraction } from "@bitwarden/auth/common"; import { EventCollectionService as EventCollectionServiceAbstraction } from "@bitwarden/common/abstractions/event/event-collection.service"; import { NotificationsService } from "@bitwarden/common/abstractions/notifications.service"; -import { VaultTimeoutSettingsService } from "@bitwarden/common/abstractions/vault-timeout/vault-timeout-settings.service"; import { VaultTimeoutService } from "@bitwarden/common/abstractions/vault-timeout/vault-timeout.service"; import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction"; import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction"; import { AccountService as AccountServiceAbstraction } from "@bitwarden/common/auth/abstractions/account.service"; import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service"; -import { DeviceTrustServiceAbstraction } from "@bitwarden/common/auth/abstractions/device-trust.service.abstraction"; -import { DevicesServiceAbstraction } from "@bitwarden/common/auth/abstractions/devices/devices.service.abstraction"; import { KdfConfigService } from "@bitwarden/common/auth/abstractions/kdf-config.service"; -import { KeyConnectorService } from "@bitwarden/common/auth/abstractions/key-connector.service"; import { InternalMasterPasswordServiceAbstraction } from "@bitwarden/common/auth/abstractions/master-password.service.abstraction"; -import { SsoLoginServiceAbstraction } from "@bitwarden/common/auth/abstractions/sso-login.service.abstraction"; import { UserVerificationService } from "@bitwarden/common/auth/abstractions/user-verification/user-verification.service.abstraction"; import { AutofillSettingsService, @@ -168,11 +163,6 @@ const safeProviders: SafeProvider[] = [ useClass: UnauthGuardService, deps: [AuthService, Router], }), - safeProvider({ - provide: SsoLoginServiceAbstraction, - useFactory: getBgService("ssoLoginService"), - deps: [], - }), safeProvider({ provide: CryptoFunctionService, useFactory: () => new WebCryptoFunctionService(window), @@ -255,16 +245,6 @@ const safeProviders: SafeProvider[] = [ useClass: TotpService, deps: [CryptoFunctionService, LogService], }), - safeProvider({ - provide: DeviceTrustServiceAbstraction, - useFactory: getBgService("deviceTrustService"), - deps: [], - }), - safeProvider({ - provide: DevicesServiceAbstraction, - useFactory: getBgService("devicesService"), - deps: [], - }), safeProvider({ provide: OffscreenDocumentService, useClass: DefaultOffscreenDocumentService, @@ -338,21 +318,6 @@ const safeProviders: SafeProvider[] = [ useClass: BrowserScriptInjectorService, deps: [PlatformUtilsService, LogService], }), - safeProvider({ - provide: KeyConnectorService, - useFactory: getBgService("keyConnectorService"), - deps: [], - }), - safeProvider({ - provide: UserVerificationService, - useFactory: getBgService("userVerificationService"), - deps: [], - }), - safeProvider({ - provide: VaultTimeoutSettingsService, - useFactory: getBgService("vaultTimeoutSettingsService"), - deps: [], - }), safeProvider({ provide: VaultTimeoutService, useFactory: getBgService("vaultTimeoutService"),