Fennec migration: enable logins migration
parent
45c6e3a784
commit
42d6915699
|
@ -200,7 +200,7 @@ class Core(private val context: Context) {
|
||||||
*/
|
*/
|
||||||
fun getSecureAbove22Preferences() = SecureAbove22Preferences(context, KEY_STORAGE_NAME)
|
fun getSecureAbove22Preferences() = SecureAbove22Preferences(context, KEY_STORAGE_NAME)
|
||||||
|
|
||||||
private val passwordsEncryptionKey: String =
|
val passwordsEncryptionKey: String =
|
||||||
getSecureAbove22Preferences().getString(PASSWORDS_KEY)
|
getSecureAbove22Preferences().getString(PASSWORDS_KEY)
|
||||||
?: generateEncryptionKey(KEY_STRENGTH).also {
|
?: generateEncryptionKey(KEY_STRENGTH).also {
|
||||||
if (context.settings().passwordsEncryptionKeyGenerated) {
|
if (context.settings().passwordsEncryptionKeyGenerated) {
|
||||||
|
|
|
@ -34,6 +34,10 @@ class MigratingFenixApplication : FenixApplication() {
|
||||||
.migrateOpenTabs(this.components.core.sessionManager)
|
.migrateOpenTabs(this.components.core.sessionManager)
|
||||||
.migrateHistory(this.components.core.historyStorage)
|
.migrateHistory(this.components.core.historyStorage)
|
||||||
.migrateBookmarks(this.components.core.bookmarksStorage)
|
.migrateBookmarks(this.components.core.bookmarksStorage)
|
||||||
|
.migrateLogins(
|
||||||
|
this.components.core.passwordsStorage.store,
|
||||||
|
this.components.core.passwordsEncryptionKey
|
||||||
|
)
|
||||||
.migrateFxa(this.components.backgroundServices.accountManager)
|
.migrateFxa(this.components.backgroundServices.accountManager)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue