[fenix] Fix GleanMetricsService to use the new Glean APIs

pull/600/head
Alessio Placitelli 5 years ago committed by Mihai Adrian
parent bb21a9aae4
commit 59566d5a98

@ -497,8 +497,10 @@ class GleanMetricsService(private val context: Context) : MetricsService {
// can handle events being recorded before it's initialized.
gleanInitializer = MainScope().launch {
Glean.registerPings(Pings)
Glean.initialize(context,
Configuration(channel = BuildConfig.BUILD_TYPE,
Glean.initialize(
applicationContext = context,
uploadEnabled = true,
configuration = Configuration(channel = BuildConfig.BUILD_TYPE,
httpClient = ConceptFetchHttpUploader(
lazy(LazyThreadSafetyMode.NONE) { context.components.core.client }
)))

Loading…
Cancel
Save