From f824c98c20eb4f9fa93248de7528118ce75af274 Mon Sep 17 00:00:00 2001 From: Alessio Placitelli Date: Thu, 5 Sep 2019 11:17:28 +0200 Subject: [PATCH] Enable Gecko metrics exfiltration through Glean (#5124) --- .../geckoBeta/java/org/mozilla/fenix/engine/GeckoProvider.kt | 2 ++ .../geckoNightly/java/org/mozilla/fenix/engine/GeckoProvider.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/src/geckoBeta/java/org/mozilla/fenix/engine/GeckoProvider.kt b/app/src/geckoBeta/java/org/mozilla/fenix/engine/GeckoProvider.kt index 8df3d3669..a29b25466 100644 --- a/app/src/geckoBeta/java/org/mozilla/fenix/engine/GeckoProvider.kt +++ b/app/src/geckoBeta/java/org/mozilla/fenix/engine/GeckoProvider.kt @@ -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) { diff --git a/app/src/geckoNightly/java/org/mozilla/fenix/engine/GeckoProvider.kt b/app/src/geckoNightly/java/org/mozilla/fenix/engine/GeckoProvider.kt index 8df3d3669..a29b25466 100644 --- a/app/src/geckoNightly/java/org/mozilla/fenix/engine/GeckoProvider.kt +++ b/app/src/geckoNightly/java/org/mozilla/fenix/engine/GeckoProvider.kt @@ -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) {