Lines Matching refs:policy
22 namespace policy { namespace
27 void DecodePolicy(const em::CloudPolicySettings& policy,
110 void UserPolicyCache::SetPolicy(const em::PolicyFetchResponse& policy) { in SetPolicy() argument
113 bool ok = SetPolicyInternal(policy, NULL, false); in SetPolicy()
115 PersistPolicy(policy, now); in SetPolicy()
127 void UserPolicyCache::PersistPolicy(const em::PolicyFetchResponse& policy, in PersistPolicy() argument
135 policy_copy->CopyFrom(policy); in PersistPolicy()
148 em::CloudPolicySettings policy; in DecodePolicyData() local
149 if (!policy.ParseFromString(policy_data.policy_value())) { in DecodePolicyData()
153 DecodePolicy(policy, mandatory, recommended); in DecodePolicyData()
171 virtual void Apply(ConfigurationPolicyType policy, Value* value) { in Apply() argument
172 policy_map_->Set(policy, value); in Apply()
188 em::LegacyChromeSettingsProto policy; in MaybeDecodeOldstylePolicy() local
190 if (!policy.ParseFromString(policy_data)) in MaybeDecodeOldstylePolicy()
193 if (policy.named_value_size() == 0) in MaybeDecodeOldstylePolicy()
199 for (named_value = policy.named_value().begin(); in MaybeDecodeOldstylePolicy()
200 named_value != policy.named_value().end(); in MaybeDecodeOldstylePolicy()