#include "components/sync/service/sync_policy_handler.h"
#include <optional>
#include <string>
#include "base/values.h"
#include "build/chromeos_buildflags.h"
#include "components/policy/core/browser/policy_error_map.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_value_map.h"
#include "components/strings/grit/components_strings.h"
#include "components/sync/base/pref_names.h"
#include "components/sync/base/user_selectable_type.h"
#include "components/sync/service/sync_prefs.h"
namespace syncer {
namespace {
void DisableSyncType(const std::string& type_name, PrefValueMap* prefs) { … }
}
SyncPolicyHandler::SyncPolicyHandler()
: … { … }
SyncPolicyHandler::~SyncPolicyHandler() = default;
bool SyncPolicyHandler::CheckPolicySettings(const policy::PolicyMap& policies,
policy::PolicyErrorMap* errors) { … }
void SyncPolicyHandler::ApplyPolicySettings(const policy::PolicyMap& policies,
PrefValueMap* prefs) { … }
}