No issue: make Performance methods private that can be.

fennec/beta
Michael Comella 4 years ago committed by Michael Comella
parent a6b07afa95
commit 4605ba9124

@ -65,7 +65,7 @@ object Performance {
* it is for testing visual metrics. These checks aren't full proof but most of our users won't have * it is for testing visual metrics. These checks aren't full proof but most of our users won't have
* ADB on and USB connected at the same time when running Firefox. * ADB on and USB connected at the same time when running Firefox.
*/ */
fun isPerformanceTest(intent: Intent, context: Context): Boolean { private fun isPerformanceTest(intent: Intent, context: Context): Boolean {
if (!intent.getBooleanExtra(EXTRA_IS_PERFORMANCE_TEST, false)) { if (!intent.getBooleanExtra(EXTRA_IS_PERFORMANCE_TEST, false)) {
return false return false
} }
@ -85,14 +85,14 @@ object Performance {
/** /**
* Bypasses the onboarding screen on launch * Bypasses the onboarding screen on launch
*/ */
fun disableOnboarding(context: Context) { private fun disableOnboarding(context: Context) {
FenixOnboarding(context).finish() FenixOnboarding(context).finish()
} }
/** /**
* Disables the tracking protection popup. However, TP is still on. * Disables the tracking protection popup. However, TP is still on.
*/ */
fun disableTrackingProtectionPopups(context: Context) { private fun disableTrackingProtectionPopups(context: Context) {
Settings.getInstance(context).isOverrideTPPopupsForPerformanceTest = true Settings.getInstance(context).isOverrideTPPopupsForPerformanceTest = true
} }
} }

Loading…
Cancel
Save