For #10757: remove no-op Experiments code and dependency.
We were supposed to have removed Experiments for performance purposes. However, I find some code dangling in the tree. Experiments.initialize is no longer called so I suspect Experiments.withExperiment is a no-op. I verified that the lambda function provided to it never ran in my local geckoBetaDebug on startup. Assuming experiments behavior doesn't change in other build types, this change appears safe.master
parent
d46369696f
commit
b0b2f87ab4
|
@ -498,10 +498,8 @@ dependencies {
|
|||
implementation Deps.mozilla_service_sync_logins
|
||||
implementation Deps.mozilla_service_firefox_accounts
|
||||
implementation Deps.mozilla_service_glean
|
||||
implementation Deps.mozilla_service_experiments
|
||||
implementation Deps.mozilla_service_location
|
||||
|
||||
|
||||
implementation Deps.mozilla_support_base
|
||||
implementation Deps.mozilla_support_ktx
|
||||
implementation Deps.mozilla_support_rustlog
|
||||
|
|
|
@ -8,7 +8,6 @@ import mozilla.components.browser.engine.gecko.autofill.GeckoLoginDelegateWrappe
|
|||
import mozilla.components.browser.engine.gecko.glean.GeckoAdapter
|
||||
import mozilla.components.concept.storage.LoginsStorage
|
||||
import mozilla.components.lib.crash.handler.CrashHandlerService
|
||||
import mozilla.components.service.experiments.Experiments
|
||||
import mozilla.components.service.sync.logins.GeckoLoginStorageDelegate
|
||||
import org.mozilla.fenix.Config
|
||||
import org.mozilla.fenix.ext.settings
|
||||
|
@ -50,12 +49,6 @@ object GeckoProvider {
|
|||
.debugLogging(Config.channel.isDebug)
|
||||
.build()
|
||||
|
||||
Experiments.withExperiment("webrender-performance-comparison-experiment") { branchName ->
|
||||
if (branchName == "disable_webrender") {
|
||||
runtimeSettings.extras.putInt("forcedisablewebrender", 1)
|
||||
}
|
||||
}
|
||||
|
||||
if (!Settings.getInstance(context).shouldUseAutoSize) {
|
||||
runtimeSettings.automaticFontSizeAdjustment = false
|
||||
val fontSize = Settings.getInstance(context).fontSizeFactor
|
||||
|
|
|
@ -117,7 +117,6 @@ object Deps {
|
|||
"org.mozilla.components:service-sync-logins:${Versions.mozilla_android_components}"
|
||||
const val mozilla_service_firefox_accounts = "org.mozilla.components:service-firefox-accounts:${Versions.mozilla_android_components}"
|
||||
const val mozilla_service_glean = "org.mozilla.components:service-glean:${Versions.mozilla_android_components}"
|
||||
const val mozilla_service_experiments = "org.mozilla.components:service-experiments:${Versions.mozilla_android_components}"
|
||||
const val mozilla_service_location = "org.mozilla.components:service-location:${Versions.mozilla_android_components}"
|
||||
|
||||
const val mozilla_ui_colors = "org.mozilla.components:ui-colors:${Versions.mozilla_android_components}"
|
||||
|
|
Loading…
Reference in New Issue