blob: 93ccecc7fbd1247e47fd33338fb650cdb70dc6d4 [file] [log] [blame]
// Copyright 2017 The Chromium Authors
// 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_HELPERS_H_
#define CHROME_BROWSER_UI_WEBUI_WELCOME_HELPERS_H_
#include "base/feature_list.h"
#include "base/values.h"
#include "build/build_config.h"
namespace policy {
class PolicyMap;
} // namespace policy
class Profile;
namespace welcome {
bool IsEnabled(Profile* profile);
bool IsAppVariationEnabled();
base::Value::Dict GetModules(Profile* profile);
// Exposed for testing.
BASE_DECLARE_FEATURE(kForceEnabled);
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);
} // namespace welcome
#endif // CHROME_BROWSER_UI_WEBUI_WELCOME_HELPERS_H_