1
0
Fork 0

No issue: make Performance methods private that can be.

master
Michael Comella 2020-02-20 15:12:38 -08:00 committed by Michael Comella
parent a6b07afa95
commit 4605ba9124
1 changed files with 3 additions and 3 deletions

View File

@ -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
* 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)) {
return false
}
@ -85,14 +85,14 @@ object Performance {
/**
* Bypasses the onboarding screen on launch
*/
fun disableOnboarding(context: Context) {
private fun disableOnboarding(context: Context) {
FenixOnboarding(context).finish()
}
/**
* Disables the tracking protection popup. However, TP is still on.
*/
fun disableTrackingProtectionPopups(context: Context) {
private fun disableTrackingProtectionPopups(context: Context) {
Settings.getInstance(context).isOverrideTPPopupsForPerformanceTest = true
}
}