Commit e07f4ac5 authored by Christian Sadilek's avatar Christian Sadilek
Browse files

Deprecate SessionManager component

parent 2d873071
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ class Components(private val context: Context) {
    }
    val services by lazyMonitored { Services(context, backgroundServices.accountManager) }
    val core by lazyMonitored { Core(context, analytics.crashReporter, strictMode) }
    @Suppress("Deprecation")
    val useCases by lazyMonitored {
        UseCases(
            context,
@@ -66,6 +67,7 @@ class Components(private val context: Context) {
            core.topSitesStorage
        )
    }
    @Suppress("Deprecation")
    val intentProcessors by lazyMonitored {
        IntentProcessors(
            context,
+3 −0
Original line number Diff line number Diff line
@@ -201,10 +201,12 @@ class Core(
        )
    }

    @Suppress("Deprecation")
    private fun lookupSessionManager(): SessionManager {
        return sessionManager
    }

    @Suppress("Deprecation")
    private fun findSessionById(tabId: String): Session? {
        return sessionManager.findSessionById(tabId)
    }
@@ -227,6 +229,7 @@ class Core(
     * sessions from the [SessionStorage], and with a default session (about:blank) in
     * case all sessions/tabs are closed.
     */
    @Deprecated("Use browser store (for reading) and use cases (for writing) instead")
    val sessionManager by lazyMonitored {
        SessionManager(engine, store).also {
            // Install the "icons" WebExtension to automatically load icons for every visited website.
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ class TestComponents(private val context: Context) : Components(context) {
    }
    override val services by lazy { Services(context, backgroundServices.accountManager) }
    override val core by lazy { TestCore(context, analytics.crashReporter) }
    @Suppress("Deprecation")
    override val useCases by lazy {
        UseCases(
            context,