#include "chrome/browser/ui/webui/welcome/helpers.h"
#include <string>
#include <vector>
#include "base/containers/contains.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/values.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "chrome/browser/policy/browser_signin_policy_handler.h"
#include "chrome/browser/policy/profile_policy_connector.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search/search.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/policy_constants.h"
namespace welcome {
const char kDefaultNewUserModules[] = …;
const char kDefaultReturningUserModules[] = …;
BASE_FEATURE(…);
BASE_FEATURE(…);
const base::FeatureParam<std::string> kNewUserModules{ … };
const base::FeatureParam<std::string> kReturningUserModules{ … };
const base::FeatureParam<std::string> kForceEnabledNewUserModules = …;
const base::FeatureParam<std::string> kForceEnabledReturningUserModules = …;
const base::FeatureParam<bool> kShowGoogleApp{ … };
const base::FeatureParam<bool> kForceEnabledShowGoogleApp = …;
bool IsPolicySetAndFalse(const policy::PolicyMap& policies,
const std::string& policy_name) { … }
bool CanShowGoogleAppModule(const policy::PolicyMap& policies) { … }
bool CanShowNTPBackgroundModule(const policy::PolicyMap& policies,
Profile* profile) { … }
bool CanShowSetDefaultModule(const policy::PolicyMap& policies) { … }
bool CanShowSigninModule(const policy::PolicyMap& policies) { … }
static bool CanExperimentWithVariations(Profile* profile) { … }
bool IsEnabled(Profile* profile) { … }
bool IsAppVariationEnabled() { … }
const policy::PolicyMap& GetPoliciesFromProfile(Profile* profile) { … }
std::vector<std::string> GetAvailableModules(Profile* profile) { … }
std::string FilterModules(const std::string& requested_modules,
const std::vector<std::string>& available_modules) { … }
base::Value::Dict GetModules(Profile* profile) { … }
bool CanShowGoogleAppModuleForTesting(const policy::PolicyMap& policies) { … }
bool CanShowNTPBackgroundModuleForTesting(const policy::PolicyMap& policies,
Profile* profile) { … }
bool CanShowSetDefaultModuleForTesting(const policy::PolicyMap& policies) { … }
bool CanShowSigninModuleForTesting(const policy::PolicyMap& policies) { … }
}