#include "chrome/browser/policy/profile_policy_connector_builder.h"
#include <list>
#include <utility>
#include "base/no_destructor.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/policy/profile_policy_connector.h"
#include "chrome/browser/policy/schema_registry_service.h"
#include "chrome/browser/profiles/profile.h"
#include "components/policy/core/common/policy_service.h"
#include "components/policy/core/common/policy_service_impl.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/policy/core/user_cloud_policy_manager_ash.h"
#include "chrome/browser/ash/profiles/profile_helper.h"
#else
#include "components/policy/core/common/cloud/cloud_policy_manager.h"
#endif
namespace policy {
namespace {
std::list<ConfigurationPolicyProvider*>* GetTestProviders() { … }
}
std::unique_ptr<ProfilePolicyConnector>
CreateProfilePolicyConnectorForBrowserContext(
SchemaRegistry* schema_registry,
CloudPolicyManager* cloud_policy_manager,
ConfigurationPolicyProvider* policy_provider,
policy::ChromeBrowserPolicyConnector* browser_policy_connector,
bool force_immediate_load,
content::BrowserContext* context) { … }
std::unique_ptr<ProfilePolicyConnector> CreateAndInitProfilePolicyConnector(
SchemaRegistry* schema_registry,
policy::ChromeBrowserPolicyConnector* browser_policy_connector,
ConfigurationPolicyProvider* policy_provider,
const CloudPolicyStore* policy_store,
bool force_immediate_load,
const user_manager::User* user) { … }
void PushProfilePolicyConnectorProviderForTesting(
ConfigurationPolicyProvider* provider) { … }
}