Remove stateService from browserPlatformUtilsService (#3362)
This commit is contained in:
parent
4435c5bccf
commit
364d2f311e
|
@ -235,7 +235,6 @@ export default class MainBackground {
|
||||||
});
|
});
|
||||||
this.platformUtilsService = new BrowserPlatformUtilsService(
|
this.platformUtilsService = new BrowserPlatformUtilsService(
|
||||||
this.messagingService,
|
this.messagingService,
|
||||||
this.stateService,
|
|
||||||
(clipboardValue, clearMs) => {
|
(clipboardValue, clearMs) => {
|
||||||
if (this.systemService != null) {
|
if (this.systemService != null) {
|
||||||
this.systemService.clearClipboard(clipboardValue, clearMs);
|
this.systemService.clearClipboard(clipboardValue, clearMs);
|
||||||
|
|
|
@ -66,7 +66,6 @@ const doAutoFillLogin = async (tab: chrome.tabs.Tab): Promise<void> => {
|
||||||
|
|
||||||
const platformUtils = new BrowserPlatformUtilsService(
|
const platformUtils = new BrowserPlatformUtilsService(
|
||||||
null, // MessagingService
|
null, // MessagingService
|
||||||
stateService,
|
|
||||||
null, // clipboardWriteCallback
|
null, // clipboardWriteCallback
|
||||||
null // biometricCallback
|
null // biometricCallback
|
||||||
);
|
);
|
||||||
|
|
|
@ -16,7 +16,7 @@ describe("Browser Utils Service", () => {
|
||||||
let browserPlatformUtilsService: BrowserPlatformUtilsService;
|
let browserPlatformUtilsService: BrowserPlatformUtilsService;
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
(window as any).matchMedia = jest.fn().mockReturnValueOnce({});
|
(window as any).matchMedia = jest.fn().mockReturnValueOnce({});
|
||||||
browserPlatformUtilsService = new BrowserPlatformUtilsService(null, null, null, null);
|
browserPlatformUtilsService = new BrowserPlatformUtilsService(null, null, null);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
|
|
@ -5,7 +5,6 @@ import { DeviceType } from "@bitwarden/common/enums/deviceType";
|
||||||
|
|
||||||
import { BrowserApi } from "../browser/browserApi";
|
import { BrowserApi } from "../browser/browserApi";
|
||||||
import { SafariApp } from "../browser/safariApp";
|
import { SafariApp } from "../browser/safariApp";
|
||||||
import { StateService } from "../services/abstractions/state.service";
|
|
||||||
|
|
||||||
const DialogPromiseExpiration = 600000; // 10 minutes
|
const DialogPromiseExpiration = 600000; // 10 minutes
|
||||||
|
|
||||||
|
@ -19,7 +18,6 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private messagingService: MessagingService,
|
private messagingService: MessagingService,
|
||||||
private stateService: StateService,
|
|
||||||
private clipboardWriteCallback: (clipboardValue: string, clearMs: number) => void,
|
private clipboardWriteCallback: (clipboardValue: string, clearMs: number) => void,
|
||||||
private biometricCallback: () => Promise<boolean>
|
private biometricCallback: () => Promise<boolean>
|
||||||
) {}
|
) {}
|
||||||
|
|
Loading…
Reference in New Issue