1
0
Fork 0

Pass lazy references to FennecMigrator

master
Grisha Kruglov 2020-03-25 17:36:03 -07:00 committed by Grisha Kruglov
parent 0f0d56e60a
commit 20f8b97dcb
1 changed files with 4 additions and 4 deletions

View File

@ -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,