#include "chrome/browser/spellchecker/spellcheck_language_policy_handler.h"
#include <utility>
#include <vector>
#include "base/strings/string_util.h"
#include "base/syslog_logging.h"
#include "base/values.h"
#include "build/build_config.h"
#include "chrome/browser/spellchecker/spellcheck_service.h"
#include "chrome/common/pref_names.h"
#include "components/policy/core/browser/policy_error_map.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_value_map.h"
#include "components/spellcheck/browser/pref_names.h"
#include "components/spellcheck/common/spellcheck_features.h"
#include "components/strings/grit/components_strings.h"
SpellcheckLanguagePolicyHandler::SpellcheckLanguagePolicyHandler()
: … { … }
SpellcheckLanguagePolicyHandler::~SpellcheckLanguagePolicyHandler() = default;
bool SpellcheckLanguagePolicyHandler::CheckPolicySettings(
const policy::PolicyMap& policies,
policy::PolicyErrorMap* errors) { … }
void SpellcheckLanguagePolicyHandler::ApplyPolicySettings(
const policy::PolicyMap& policies,
PrefValueMap* prefs) { … }
void SpellcheckLanguagePolicyHandler::SortForcedLanguages(
const policy::PolicyMap& policies,
base::Value::List* const forced,
std::vector<std::string>* const unknown) { … }