blob: f0368af081e3e7733affc006fee0cb95a3cb3f84 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_WELCOME_NUX_HELPER_H_
#define CHROME_BROWSER_UI_WEBUI_WELCOME_NUX_HELPER_H_
#include <string>
#include "base/macros.h"
#include "base/metrics/field_trial_params.h"
namespace base {
class DictionaryValue;
struct Feature;
} // namespace base
class Profile;
namespace nux {
extern const base::Feature kNuxOnboardingForceEnabled;
extern const base::FeatureParam<std::string>
kNuxOnboardingForceEnabledNewUserModules;
extern const base::FeatureParam<std::string>
kNuxOnboardingForceEnabledReturningUserModules;
extern const base::FeatureParam<bool>
kNuxOnboardingForceEnabledShowEmailInterstitial;
// Get the group for users who onboard in this experiment.
// Groups are:
// - Specified by study
// - The same for all experiments in study
// - Incremented with each new version
// - Not reused
// - Cleared out when experiment ends
std::string GetOnboardingGroup();
bool IsNuxOnboardingEnabled(Profile* profile);
base::DictionaryValue GetNuxOnboardingModules(Profile* profile);
} // namespace nux
#endif // CHROME_BROWSER_UI_WEBUI_WELCOME_NUX_HELPER_H_