This commit is contained in:
parent
baaa85db80
commit
34f0c84d46
|
@ -109,7 +109,7 @@ class BackgroundServices(
|
||||||
|
|
||||||
val accountAbnormalities = AccountAbnormalities(context, crashReporter, strictMode)
|
val accountAbnormalities = AccountAbnormalities(context, crashReporter, strictMode)
|
||||||
|
|
||||||
val accountManager by lazy { makeAccountManager(context, serverConfig, deviceConfig, syncConfig) }
|
val accountManager by lazy { makeAccountManager(context, serverConfig, deviceConfig, syncConfig, crashReporter) }
|
||||||
|
|
||||||
val syncedTabsStorage by lazy {
|
val syncedTabsStorage by lazy {
|
||||||
SyncedTabsStorage(accountManager, context.components.core.store, remoteTabsStorage.value)
|
SyncedTabsStorage(accountManager, context.components.core.store, remoteTabsStorage.value)
|
||||||
|
@ -120,7 +120,8 @@ class BackgroundServices(
|
||||||
context: Context,
|
context: Context,
|
||||||
serverConfig: ServerConfig,
|
serverConfig: ServerConfig,
|
||||||
deviceConfig: DeviceConfig,
|
deviceConfig: DeviceConfig,
|
||||||
syncConfig: SyncConfig?
|
syncConfig: SyncConfig?,
|
||||||
|
crashReporter: CrashReporter?
|
||||||
) = FxaAccountManager(
|
) = FxaAccountManager(
|
||||||
context,
|
context,
|
||||||
serverConfig,
|
serverConfig,
|
||||||
|
@ -136,7 +137,8 @@ class BackgroundServices(
|
||||||
// Necessary to enable "Manage Account" functionality and ability to generate OAuth
|
// Necessary to enable "Manage Account" functionality and ability to generate OAuth
|
||||||
// codes for certain scopes.
|
// codes for certain scopes.
|
||||||
SCOPE_SESSION
|
SCOPE_SESSION
|
||||||
)
|
),
|
||||||
|
crashReporter
|
||||||
).also { accountManager ->
|
).also { accountManager ->
|
||||||
// TODO this needs to change once we have a SyncManager
|
// TODO this needs to change once we have a SyncManager
|
||||||
context.settings().fxaHasSyncedItems = accountManager.authenticatedAccount()?.let {
|
context.settings().fxaHasSyncedItems = accountManager.authenticatedAccount()?.let {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user