refactor(cc-dark-theme): migrate to the new DI architecture
Bug: twpowertools:226
Change-Id: I735013393d1d99cadee48399bba53a22fe59e27c
diff --git a/src/common/architecture/scripts/stylesheet/StylesheetScript.ts b/src/common/architecture/scripts/stylesheet/StylesheetScript.ts
index 991afa5..2ed9025 100644
--- a/src/common/architecture/scripts/stylesheet/StylesheetScript.ts
+++ b/src/common/architecture/scripts/stylesheet/StylesheetScript.ts
@@ -1,6 +1,6 @@
import StylesheetManager from '../../../StylesheetManager';
import { StylesheetAttributes } from '../../../contentScriptsUtils';
-import OptionsProvider from '../../../options/OptionsProvider';
+import OptionsProviderAdapter from '../../../options/OptionsProvider';
import DependenciesProviderSingleton, {
OptionsProviderDependency,
} from '../../dependenciesProvider/DependenciesProvider';
@@ -23,11 +23,13 @@
*/
readonly attributes: StylesheetAttributes = {};
- protected optionsProvider: OptionsProvider;
+ protected optionsProvider: OptionsProviderAdapter;
private stylesheetManager: StylesheetManager;
constructor() {
super();
+
+ // TODO(https://iavm.xyz/b/226): Retrieve this via constructor injection.
const dependenciesProvider = DependenciesProviderSingleton.getInstance();
this.optionsProvider = dependenciesProvider.getDependency(
OptionsProviderDependency,