Fixes #17738 - Early initialization of Nimbus (#17834) r=christian

upstream-sync
jhugman 3 years ago committed by GitHub
parent d61857c0e3
commit 1ef4102e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -306,6 +306,10 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
// ... but RustHttpConfig.setClient() and RustLog.enable() can be called later.
RustHttpConfig.setClient(lazy { components.core.client })
RustLog.enable(components.analytics.crashReporter)
// We want to ensure Nimbus is initialized as early as possible so we can
// experiment on features close to startup.
// But we need viaduct (the RustHttp client) to be ready before we do.
components.analytics.experiments.initialize()
}
}

Loading…
Cancel
Save