Skip to content

Commit a7ab3d2

Browse files
committed
Bug 1978601 - registerStorageMaintenanceWorker for Autofill
1 parent 466d8ae commit a7ab3d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mobile/android/fenix/app/src/main/java/org/mozilla/fenix/FenixApplication.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ import mozilla.components.feature.top.sites.TopSitesProviderConfig
5151
import mozilla.components.feature.webcompat.reporter.WebCompatReporterFeature
5252
import mozilla.components.lib.crash.CrashReporter
5353
import mozilla.components.service.fxa.manager.SyncEnginesStorage
54+
import mozilla.components.service.sync.autofill.GlobalAutofillDependencyProvider
5455
import mozilla.components.service.sync.logins.GlobalLoginsDependencyProvider
5556
import mozilla.components.service.sync.logins.LoginsApiException
5657
import mozilla.components.support.AppServicesInitializer
@@ -294,6 +295,7 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
294295
// for the periodic task.
295296
GlobalPlacesDependencyProvider.initialize(components.core.historyStorage)
296297
GlobalLoginsDependencyProvider.initialize(lazy { components.core.passwordsStorage })
298+
GlobalAutofillDependencyProvider.initialize(lazy { components.core.autofillStorage })
297299

298300
GlobalSyncedTabsCommandsProvider.initialize(lazy { components.backgroundServices.syncedTabsCommands })
299301

@@ -480,6 +482,7 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
480482
// to run the maintenance on.
481483
components.core.historyStorage.registerStorageMaintenanceWorker()
482484
components.core.passwordsStorage.registerStorageMaintenanceWorker()
485+
components.core.autofillStorage.registerStorageMaintenanceWorker()
483486
}
484487
}
485488

0 commit comments

Comments
 (0)