Skip to content

Commit

Permalink
Additional "default browser" prompts: control
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPaczos committed Jan 17, 2025
1 parent 042d38e commit 674f63c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ interface DefaultBrowserPromptsExperimentStageEvaluator {
val targetCohort: AdditionalPromptsCohortName
suspend fun evaluate(newStage: ExperimentStage): DefaultBrowserPromptsExperimentStageAction

@ContributesMultibinding(scope = AppScope::class)
class Control @Inject constructor() : DefaultBrowserPromptsExperimentStageEvaluator {

override val targetCohort = AdditionalPromptsCohortName.CONTROL

override suspend fun evaluate(newStage: ExperimentStage): DefaultBrowserPromptsExperimentStageAction =
DefaultBrowserPromptsExperimentStageAction.disableAll
}

@ContributesMultibinding(scope = AppScope::class)
class Variant2 @Inject constructor() : DefaultBrowserPromptsExperimentStageEvaluator {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ interface DefaultBrowserPromptsFeatureToggles {
fun additionalPrompts(): Toggle

enum class AdditionalPromptsCohortName(override val cohortName: String) : CohortName {
CONTROL("control"),
VARIANT_2("variant_2"),
}
}

0 comments on commit 674f63c

Please sign in to comment.