1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 import { BaseStudyAction } from "resource://normandy/actions/BaseStudyAction.sys.mjs";
9 ChromeUtils.defineESModuleGetters(lazy, {
10 ActionSchemas: "resource://normandy/actions/schemas/index.sys.mjs",
11 ExperimentManager: "resource://nimbus/lib/ExperimentManager.sys.mjs",
14 const RECIPE_SOURCE = "normandy";
16 export class MessagingExperimentAction extends BaseStudyAction {
19 this.manager = lazy.ExperimentManager;
22 return lazy.ActionSchemas["messaging-experiment"];
26 if (recipe.arguments) {
27 await this.manager.onRecipe(recipe.arguments, RECIPE_SOURCE);
32 this.manager.onFinalize(RECIPE_SOURCE);