From 7d25624e169d964deab8a78c7708ef8f95d3c00d Mon Sep 17 00:00:00 2001 From: Alessio Placitelli Date: Thu, 5 Sep 2019 11:17:28 +0200 Subject: [PATCH] [fenix] Enable Gecko metrics exfiltration through Glean (https://github.com/mozilla-mobile/fenix/pull/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 8df3d3669a..a29b254666 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 8df3d3669a..a29b254666 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) {