@ -25,7 +25,6 @@ import mozilla.components.browser.state.action.SystemAction
import mozilla.components.concept.push.PushProcessor
import mozilla.components.feature.addons.update.GlobalAddonDependencyProvider
import mozilla.components.lib.crash.CrashReporter
import mozilla.components.service.experiments.Experiments
import mozilla.components.service.glean.Glean
import mozilla.components.service.glean.config.Configuration
import mozilla.components.service.glean.net.ConceptFetchHttpUploader
@ -170,25 +169,6 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
registerActivityLifecycleCallbacks ( PerformanceActivityLifecycleCallbacks ( queue ) )
}
fun queueInitExperiments ( ) {
@Suppress ( " ControlFlowWithEmptyBody " )
if ( settings ( ) . isExperimentationEnabled ) {
queue . runIfReadyOrQueue {
Experiments . initialize (
applicationContext = applicationContext ,
onExperimentsUpdated = null ,
configuration = mozilla . components . service . experiments . Configuration (
httpClient = components . core . client ,
kintoEndpoint = KINTO _ENDPOINT _PROD
)
)
}
} else {
// We should make a better way to opt out for when we have more experiments
// See https://github.com/mozilla-mobile/fenix/issues/6278
}
}
fun queueInitStorageAndServices ( ) {
components . performance . visualCompletenessQueue . queue . runIfReadyOrQueue {
GlobalScope . launch ( Dispatchers . IO ) {
@ -229,7 +209,6 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
// We init these items in the visual completeness queue to avoid them initing in the critical
// startup path, before the UI finishes drawing (i.e. visual completeness).
queueInitExperiments ( )
queueInitStorageAndServices ( )
queueMetrics ( )
queueReviewPrompt ( )