• Home
  • Raw
  • Download

Lines Matching refs:pol

87   em::ChromeDeviceSettingsProto pol;  in EnumerateWhitelist()  local
88 pol.ParseFromString(service->cached_policy().policy_value()); in EnumerateWhitelist()
89 if (!pol.has_user_whitelist()) in EnumerateWhitelist()
93 pol.user_whitelist().user_whitelist(); in EnumerateWhitelist()
400 em::ChromeDeviceSettingsProto pol; in LookUpInPolicy() local
401 pol.ParseFromString(service_->cached_policy().policy_value()); in LookUpInPolicy()
402 if (!pol.has_user_whitelist()) in LookUpInPolicy()
406 pol.user_whitelist().user_whitelist(); in LookUpInPolicy()
438 em::ChromeDeviceSettingsProto pol; in Execute() local
439 pol.ParseFromString(to_sign.policy_value()); in Execute()
440 em::UserWhitelistProto* whitelist_proto = pol.mutable_user_whitelist(); in Execute()
442 to_sign.set_policy_value(pol.SerializeAsString()); in Execute()
610 em::ChromeDeviceSettingsProto pol; in SetInPolicy() local
611 pol.ParseFromString(poldata->policy_value()); in SetInPolicy()
613 em::AllowNewUsersProto* allow = pol.mutable_allow_new_users(); in SetInPolicy()
617 em::GuestModeEnabledProto* guest = pol.mutable_guest_mode_enabled(); in SetInPolicy()
621 em::ShowUserNamesOnSigninProto* show = pol.mutable_show_user_names(); in SetInPolicy()
625 em::DataRoamingEnabledProto* roam = pol.mutable_data_roaming_enabled(); in SetInPolicy()
630 bool success = pol.mutable_device_proxy_settings()->ParseFromString(value); in SetInPolicy()
636 poldata->set_policy_value(pol.SerializeAsString()); in SetInPolicy()
713 em::ChromeDeviceSettingsProto pol; in LookUpInPolicy() local
714 pol.ParseFromString(service_->cached_policy().policy_value()); in LookUpInPolicy()
716 if (pol.has_allow_new_users() && in LookUpInPolicy()
717 pol.allow_new_users().has_allow_new_users() && in LookUpInPolicy()
718 pol.allow_new_users().allow_new_users()) { in LookUpInPolicy()
725 if (!pol.has_user_whitelist()) in LookUpInPolicy()
727 return kVeritas[pol.user_whitelist().user_whitelist_size() == 0]; in LookUpInPolicy()
730 if (!pol.has_guest_mode_enabled() || in LookUpInPolicy()
731 !pol.guest_mode_enabled().has_guest_mode_enabled()) in LookUpInPolicy()
733 return kVeritas[pol.guest_mode_enabled().guest_mode_enabled()]; in LookUpInPolicy()
736 if (!pol.has_show_user_names() || in LookUpInPolicy()
737 !pol.show_user_names().has_show_user_names()) in LookUpInPolicy()
739 return kVeritas[pol.show_user_names().show_user_names()]; in LookUpInPolicy()
742 if (!pol.has_data_roaming_enabled() || in LookUpInPolicy()
743 !pol.data_roaming_enabled().has_data_roaming_enabled()) in LookUpInPolicy()
745 return kVeritas[pol.data_roaming_enabled().data_roaming_enabled()]; in LookUpInPolicy()
750 if (!pol.has_device_proxy_settings() || in LookUpInPolicy()
751 !pol.device_proxy_settings().SerializeToString(&serialized)) in LookUpInPolicy()