Pass lazy references to FennecMigrator
parent
0f0d56e60a
commit
20f8b97dcb
|
@ -23,13 +23,13 @@ class MigratingFenixApplication : FenixApplication() {
|
||||||
val migrator by lazy {
|
val migrator by lazy {
|
||||||
FennecMigrator.Builder(this, this.components.analytics.crashReporter)
|
FennecMigrator.Builder(this, this.components.analytics.crashReporter)
|
||||||
.migrateOpenTabs(this.components.core.sessionManager)
|
.migrateOpenTabs(this.components.core.sessionManager)
|
||||||
.migrateHistory(this.components.core.historyStorage)
|
.migrateHistory(this.components.core.lazyHistoryStorage)
|
||||||
.migrateBookmarks(
|
.migrateBookmarks(
|
||||||
this.components.core.bookmarksStorage,
|
this.components.core.lazyBookmarksStorage,
|
||||||
this.components.core.topSiteStorage.storage
|
this.components.core.topSiteStorage.storage
|
||||||
)
|
)
|
||||||
.migrateLogins(this.components.core.passwordsStorage)
|
.migrateLogins(this.components.core.lazyPasswordsStorage)
|
||||||
.migrateFxa(this.components.backgroundServices.accountManager)
|
.migrateFxa(lazy { this.components.backgroundServices.accountManager })
|
||||||
.migrateAddons(
|
.migrateAddons(
|
||||||
this.components.core.engine,
|
this.components.core.engine,
|
||||||
this.components.addonCollectionProvider,
|
this.components.addonCollectionProvider,
|
||||||
|
|
Loading…
Reference in New Issue