1
0
Fork 0

Fix GleanMetricsService to use the new Glean APIs

master
Alessio Placitelli 2020-01-15 14:55:20 +01:00 committed by Mihai Adrian
parent 3b3648e650
commit f93437c509
1 changed files with 4 additions and 2 deletions

View File

@ -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 }
)))