blob: 50e86989cfe9e24e8ccec07e3f9a9aa6ce63b357 [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;
// 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(Profile* profile);
bool IsNuxOnboardingEnabled(Profile* profile);
bool DoesOnboardingHaveModulesToShow(Profile* profile);
base::DictionaryValue GetNuxOnboardingModules(Profile* profile);
} // namespace nux
#endif // CHROME_BROWSER_UI_WEBUI_WELCOME_NUX_HELPER_H_