1
0
Fork 0

Enable Gecko metrics exfiltration through Glean (#5124)

master
Alessio Placitelli 2019-09-05 11:17:28 +02:00 committed by Colin Lee
parent a5e9da7a55
commit f824c98c20
2 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@
import android.content.Context
import android.os.Bundle
import mozilla.components.browser.engine.gecko.glean.GeckoAdapter
import mozilla.components.lib.crash.handler.CrashHandlerService
import org.mozilla.fenix.utils.Settings
import org.mozilla.geckoview.GeckoRuntime
@ -33,6 +34,7 @@ object GeckoProvider {
val runtimeSettings = builder
.crashHandler(CrashHandlerService::class.java)
.useContentProcessHint(true)
.telemetryDelegate(GeckoAdapter())
.build()
if (!Settings.getInstance(context).shouldUseAutoSize) {

View File

@ -4,6 +4,7 @@
import android.content.Context
import android.os.Bundle
import mozilla.components.browser.engine.gecko.glean.GeckoAdapter
import mozilla.components.lib.crash.handler.CrashHandlerService
import org.mozilla.fenix.utils.Settings
import org.mozilla.geckoview.GeckoRuntime
@ -33,6 +34,7 @@ object GeckoProvider {
val runtimeSettings = builder
.crashHandler(CrashHandlerService::class.java)
.useContentProcessHint(true)
.telemetryDelegate(GeckoAdapter())
.build()
if (!Settings.getInstance(context).shouldUseAutoSize) {