#include "components/enterprise/browser/reporting/cloud_reporting_frequency_policy_handler.h"
#include "base/json/values_util.h"
#include "base/time/time.h"
#include "components/enterprise/browser/reporting/common_pref_names.h"
#include "components/policy/core/browser/policy_error_map.h"
#include "components/policy/core/common/schema.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_value_map.h"
#include "components/strings/grit/components_strings.h"
namespace enterprise_reporting {
namespace {
constexpr int kMinimumReportFrequencyInHour = …;
constexpr int kMaximumReportFrequencyInour = …;
}
CloudReportingFrequencyPolicyHandler::CloudReportingFrequencyPolicyHandler()
: … { … }
CloudReportingFrequencyPolicyHandler::~CloudReportingFrequencyPolicyHandler() =
default;
bool CloudReportingFrequencyPolicyHandler::CheckPolicySettings(
const policy::PolicyMap& policies,
policy::PolicyErrorMap* errors) { … }
void CloudReportingFrequencyPolicyHandler::ApplyPolicySettings(
const policy::PolicyMap& policies,
PrefValueMap* prefs) { … }
}