#include "components/enterprise/browser/reporting/policy_info.h"
#include <string>
#include "base/json/json_writer.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "components/policy/core/browser/policy_conversions.h"
#include "components/policy/core/common/cloud/cloud_policy_client.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/core/common/cloud/cloud_policy_manager.h"
#include "components/policy/core/common/policy_types.h"
#include "components/strings/grit/components_strings.h"
em;
namespace enterprise_reporting {
namespace {
em::Policy_PolicyLevel GetLevel(const base::Value& policy) { … }
em::Policy_PolicyScope GetScope(const base::Value& policy) { … }
em::Policy_PolicySource GetSource(const base::Value& policy) { … }
void UpdateConflictedPolicy(em::Policy* policy_info,
const base::Value& policy) { … }
void UpdateConflictedPolicies(const std::string conflict_key,
em::Policy* policy_info,
const base::Value::Dict& policy) { … }
void UpdatePolicyInfo(em::Policy* policy_info,
const std::string& policy_name,
const base::Value& policy) { … }
}
void AppendChromePolicyInfoIntoProfileReport(
const base::Value::Dict& policies,
em::ChromeUserProfileInfo* profile_info) { … }
void AppendExtensionPolicyInfoIntoProfileReport(
const base::Value::Dict& policies,
em::ChromeUserProfileInfo* profile_info) { … }
void AppendCloudPolicyFetchTimestamp(em::ChromeUserProfileInfo* profile_info,
policy::CloudPolicyManager* manager) { … }
}