Home
last modified time | relevance | path

Searched refs:policies (Results 1 – 25 of 167) sorted by relevance

1234567

/external/chromium_org/chrome/browser/chromeos/policy/
Ddevice_policy_decoder_chromeos.cc61 PolicyMap* policies) { in DecodeLoginPolicies() argument
65 policies->Set(key::kDeviceGuestModeEnabled, in DecodeLoginPolicies()
76 policies->Set(key::kDeviceShowUserNamesOnSignin, in DecodeLoginPolicies()
87 policies->Set(key::kDeviceAllowNewUsers, in DecodeLoginPolicies()
104 policies->Set(key::kDeviceUserWhitelist, in DecodeLoginPolicies()
115 policies->Set(key::kDeviceEphemeralUsersEnabled, in DecodeLoginPolicies()
158 policies->Set(key::kDeviceLocalAccounts, in DecodeLoginPolicies()
164 policies->Set(key::kDeviceLocalAccountAutoLoginId, in DecodeLoginPolicies()
171 policies->Set(key::kDeviceLocalAccountAutoLoginDelay, in DecodeLoginPolicies()
178 policies->Set(key::kDeviceLocalAccountAutoLoginBailoutEnabled, in DecodeLoginPolicies()
[all …]
Dconfiguration_policy_handler_chromeos.h29 virtual bool CheckPolicySettings(const PolicyMap& policies,
32 virtual void ApplyPolicySettings(const PolicyMap& policies,
50 virtual bool CheckPolicySettings(const PolicyMap& policies,
52 virtual void ApplyPolicySettings(const PolicyMap& policies,
54 virtual void PrepareForDisplaying(PolicyMap* policies) const OVERRIDE;
86 virtual void ApplyPolicySettings(const PolicyMap& policies,
99 virtual void ApplyPolicySettings(const PolicyMap& policies,
116 virtual bool CheckPolicySettings(const PolicyMap& policies,
118 virtual void ApplyPolicySettings(const PolicyMap& policies,
133 virtual void ApplyPolicySettings(const PolicyMap& policies,
Dconfiguration_policy_handler_chromeos.cc75 bool ExternalDataPolicyHandler::CheckPolicySettings(const PolicyMap& policies, in CheckPolicySettings() argument
77 if (!TypeCheckingPolicyHandler::CheckPolicySettings(policies, errors)) in CheckPolicySettings()
81 const base::Value* value = policies.GetValue(policy); in CheckPolicySettings()
114 void ExternalDataPolicyHandler::ApplyPolicySettings(const PolicyMap& policies, in ApplyPolicySettings() argument
139 const PolicyMap& policies, in CheckPolicySettings() argument
142 if (!CheckAndGetValue(policies, errors, &value)) in CheckPolicySettings()
182 const PolicyMap& policies, in ApplyPolicySettings() argument
184 const base::Value* value = policies.GetValue(policy_name()); in ApplyPolicySettings()
207 PolicyMap* policies) const { in PrepareForDisplaying()
208 const PolicyMap::Entry* entry = policies->Get(policy_name()); in PrepareForDisplaying()
[all …]
/external/chromium_org/chrome/browser/policy/
Dpolicy_browsertest.cc619 PolicyMap policies; in SetScreenshotPolicy() local
620 policies.Set(key::kDisableScreenshots, in SetScreenshotPolicy()
623 UpdateProviderPolicy(policies); in SetScreenshotPolicy()
734 PolicyMap policies; in SetUpInProcessBrowserTestFixture() local
735 policies.Set( in SetUpInProcessBrowserTestFixture()
738 provider_.UpdateChromePolicy(policies); in SetUpInProcessBrowserTestFixture()
779 PolicyMap policies; in IN_PROC_BROWSER_TEST_F() local
780 policies.Set(key::kBookmarkBarEnabled, POLICY_LEVEL_MANDATORY, in IN_PROC_BROWSER_TEST_F()
782 UpdateProviderPolicy(policies); in IN_PROC_BROWSER_TEST_F()
791 policies.Set(key::kBookmarkBarEnabled, POLICY_LEVEL_MANDATORY, in IN_PROC_BROWSER_TEST_F()
[all …]
Djavascript_policy_handler.cc22 bool JavascriptPolicyHandler::CheckPolicySettings(const PolicyMap& policies, in CheckPolicySettings() argument
25 policies.GetValue(key::kJavascriptEnabled); in CheckPolicySettings()
27 policies.GetValue(key::kDefaultJavaScriptSetting); in CheckPolicySettings()
51 void JavascriptPolicyHandler::ApplyPolicySettings(const PolicyMap& policies, in ApplyPolicySettings() argument
55 policies.GetValue(key::kDefaultJavaScriptSetting); in ApplyPolicySettings()
61 policies.GetValue(key::kJavascriptEnabled); in ApplyPolicySettings()
Durl_blacklist_policy_handler.cc22 bool URLBlacklistPolicyHandler::CheckPolicySettings(const PolicyMap& policies, in CheckPolicySettings() argument
25 policies.GetValue(key::kDisabledSchemes); in CheckPolicySettings()
26 const base::Value* url_blacklist = policies.GetValue(key::kURLBlacklist); in CheckPolicySettings()
43 void URLBlacklistPolicyHandler::ApplyPolicySettings(const PolicyMap& policies, in ApplyPolicySettings() argument
46 policies.GetValue(key::kURLBlacklist); in ApplyPolicySettings()
51 policies.GetValue(key::kDisabledSchemes); in ApplyPolicySettings()
/external/libsepol/tests/
DMakefile24 m4support := $(wildcard policies/support/*.spt)
25 testsuites := $(wildcard policies/test-*)
29 policies := $(stdpol) $(mlspol) macro
31 all: $(EXE) $(policies)
32 policies: $(policies) target
45 rm -f $(policies)
46 rm -f policies/test-downgrade/policy.hi policies/test-downgrade/policy.lo
49 test: $(EXE) $(policies)
50 $(MKDIR) -p policies/test-downgrade
51 …../../checkpolicy/checkpolicy -M policies/test-cond/refpolicy-base.conf -o policies/test-downgrade…
[all …]
/external/chromium_org/third_party/openssl/openssl/crypto/x509/
Dx509_vpm.c81 if (param->policies) in x509_verify_param_zero()
83 sk_ASN1_OBJECT_pop_free(param->policies, ASN1_OBJECT_free); in x509_verify_param_zero()
84 param->policies = NULL; in x509_verify_param_zero()
190 if (test_x509_verify_param_copy(policies, NULL)) in X509_VERIFY_PARAM_inherit()
192 if (!X509_VERIFY_PARAM_set1_policies(dest, src->policies)) in X509_VERIFY_PARAM_inherit()
262 if (!param->policies) in X509_VERIFY_PARAM_add0_policy()
264 param->policies = sk_ASN1_OBJECT_new_null(); in X509_VERIFY_PARAM_add0_policy()
265 if (!param->policies) in X509_VERIFY_PARAM_add0_policy()
268 if (!sk_ASN1_OBJECT_push(param->policies, policy)) in X509_VERIFY_PARAM_add0_policy()
274 STACK_OF(ASN1_OBJECT) *policies) in X509_VERIFY_PARAM_set1_policies()
[all …]
/external/openssl/crypto/x509/
Dx509_vpm.c81 if (param->policies) in x509_verify_param_zero()
83 sk_ASN1_OBJECT_pop_free(param->policies, ASN1_OBJECT_free); in x509_verify_param_zero()
84 param->policies = NULL; in x509_verify_param_zero()
190 if (test_x509_verify_param_copy(policies, NULL)) in X509_VERIFY_PARAM_inherit()
192 if (!X509_VERIFY_PARAM_set1_policies(dest, src->policies)) in X509_VERIFY_PARAM_inherit()
262 if (!param->policies) in X509_VERIFY_PARAM_add0_policy()
264 param->policies = sk_ASN1_OBJECT_new_null(); in X509_VERIFY_PARAM_add0_policy()
265 if (!param->policies) in X509_VERIFY_PARAM_add0_policy()
268 if (!sk_ASN1_OBJECT_push(param->policies, policy)) in X509_VERIFY_PARAM_add0_policy()
274 STACK_OF(ASN1_OBJECT) *policies) in X509_VERIFY_PARAM_set1_policies()
[all …]
/external/chromium_org/chromeos/network/
Dmanaged_network_configuration_handler_impl.cc75 const base::DictionaryValue* GetByGUID(const GuidToPolicyMap& policies, in GetByGUID() argument
77 GuidToPolicyMap::const_iterator it = policies.find(guid); in GetByGUID()
78 if (it == policies.end()) in GetByGUID()
184 const Policies* policies = GetPoliciesForProfile(*profile); in GetManagedPropertiesCallback() local
185 if (!policies) { in GetManagedPropertiesCallback()
191 GetByGUID(policies->per_network_config, guid); in GetManagedPropertiesCallback()
256 const Policies* policies = GetPoliciesForProfile(*profile); in SetProperties() local
257 if (!policies) { in SetProperties()
284 GetByGUID(policies->per_network_config, guid); in SetProperties()
300 const Policies* policies = GetPoliciesForUser(userhash); in CreateConfiguration() local
[all …]
/external/chromium_org/chrome/browser/sessions/
Drestore_on_startup_policy_handler.cc27 const PolicyMap& policies, in ApplyPolicySettings() argument
30 policies.GetValue(policy_name()); in ApplyPolicySettings()
37 ApplyPolicySettingsFromHomePage(policies, prefs); in ApplyPolicySettings()
44 const PolicyMap& policies, in ApplyPolicySettingsFromHomePage() argument
47 policies.GetValue(key::kHomepageIsNewTabPage); in ApplyPolicySettingsFromHomePage()
63 policies.GetValue(key::kHomepageLocation); in ApplyPolicySettingsFromHomePage()
78 const PolicyMap& policies, in CheckPolicySettings() argument
80 if (!TypeCheckingPolicyHandler::CheckPolicySettings(policies, errors)) in CheckPolicySettings()
83 const base::Value* restore_policy = policies.GetValue(key::kRestoreOnStartup); in CheckPolicySettings()
97 policies.GetValue(key::kCookiesSessionOnlyForUrls); in CheckPolicySettings()
[all …]
/external/chromium_org/components/policy/core/browser/
Dconfiguration_policy_handler.cc49 PolicyMap* policies) const {} in PrepareForDisplaying()
68 bool TypeCheckingPolicyHandler::CheckPolicySettings(const PolicyMap& policies, in CheckPolicySettings() argument
71 return CheckAndGetValue(policies, errors, &value); in CheckPolicySettings()
74 bool TypeCheckingPolicyHandler::CheckAndGetValue(const PolicyMap& policies, in CheckAndGetValue() argument
77 *value = policies.GetValue(policy_name_); in CheckAndGetValue()
101 bool IntRangePolicyHandlerBase::CheckPolicySettings(const PolicyMap& policies, in CheckPolicySettings() argument
104 return CheckAndGetValue(policies, errors, &value) && in CheckPolicySettings()
155 const PolicyMap& policies, in CheckPolicySettings() argument
158 return CheckAndGetValue(policies, errors, &value) && in CheckPolicySettings()
163 const PolicyMap& policies, in ApplyPolicySettings() argument
[all …]
Dconfiguration_policy_handler.h43 virtual bool CheckPolicySettings(const PolicyMap& policies,
48 virtual void ApplyPolicySettings(const PolicyMap& policies,
54 virtual void PrepareForDisplaying(PolicyMap* policies) const;
70 virtual bool CheckPolicySettings(const PolicyMap& policies,
77 bool CheckAndGetValue(const PolicyMap& policies,
103 virtual bool CheckPolicySettings(const PolicyMap& policies,
139 virtual void ApplyPolicySettings(const PolicyMap& policies,
165 virtual bool CheckPolicySettings(const PolicyMap& policies,
167 virtual void ApplyPolicySettings(const PolicyMap& policies,
199 virtual void ApplyPolicySettings(const PolicyMap& policies,
[all …]
Dconfiguration_policy_handler_list.cc29 const PolicyMap& policies, in ApplyPolicySettings() argument
38 if ((*handler)->CheckPolicySettings(policies, errors) && prefs) in ApplyPolicySettings()
39 (*handler)->ApplyPolicySettings(policies, prefs); in ApplyPolicySettings()
42 for (PolicyMap::const_iterator it = policies.begin(); in ApplyPolicySettings()
43 it != policies.end(); in ApplyPolicySettings()
53 PolicyMap* policies) const { in PrepareForDisplaying()
56 (*handler)->PrepareForDisplaying(policies); in PrepareForDisplaying()
/external/chromium_org/chrome/browser/search_engines/
Ddefault_search_policy_handler.h22 virtual void ApplyPolicySettings(const PolicyMap& policies,
36 virtual bool CheckPolicySettings(const PolicyMap& policies,
38 virtual void ApplyPolicySettings(const PolicyMap& policies,
44 bool CheckIndividualPolicies(const PolicyMap& policies,
48 bool HasDefaultSearchPolicy(const PolicyMap& policies,
52 bool AnyDefaultSearchPoliciesSpecified(const PolicyMap& policies);
55 bool DefaultSearchProviderIsDisabled(const PolicyMap& policies);
59 bool DefaultSearchURLIsValid(const PolicyMap& policies,
Ddefault_search_policy_handler.cc85 const PolicyMap& policies, PrefValueMap* prefs) { in ApplyPolicySettings() argument
89 const Value* value = policies.GetValue(policy_name()); in ApplyPolicySettings()
129 bool DefaultSearchPolicyHandler::CheckPolicySettings(const PolicyMap& policies, in CheckPolicySettings() argument
131 if (!CheckIndividualPolicies(policies, errors)) in CheckPolicySettings()
134 if (DefaultSearchProviderIsDisabled(policies)) { in CheckPolicySettings()
143 HasDefaultSearchPolicy(policies, policy_name)) { in CheckPolicySettings()
152 if (DefaultSearchURLIsValid(policies, &url, &dummy) || in CheckPolicySettings()
153 !AnyDefaultSearchPoliciesSpecified(policies)) in CheckPolicySettings()
160 void DefaultSearchPolicyHandler::ApplyPolicySettings(const PolicyMap& policies, in ApplyPolicySettings() argument
162 if (DefaultSearchProviderIsDisabled(policies)) { in ApplyPolicySettings()
[all …]
/external/chromium_org/chrome/browser/net/
Dproxy_policy_handler.cc64 bool ProxyPolicyHandler::CheckPolicySettings(const PolicyMap& policies, in CheckPolicySettings() argument
66 const base::Value* mode = GetProxyPolicyValue(policies, key::kProxyMode); in CheckPolicySettings()
67 const base::Value* server = GetProxyPolicyValue(policies, key::kProxyServer); in CheckPolicySettings()
69 GetProxyPolicyValue(policies, key::kProxyServerMode); in CheckPolicySettings()
70 const base::Value* pac_url = GetProxyPolicyValue(policies, key::kProxyPacUrl); in CheckPolicySettings()
72 GetProxyPolicyValue(policies, key::kProxyBypassList); in CheckPolicySettings()
82 if (!CheckProxyModeAndServerMode(policies, errors, &mode_value)) in CheckPolicySettings()
131 void ProxyPolicyHandler::ApplyPolicySettings(const PolicyMap& policies, in ApplyPolicySettings() argument
133 const base::Value* mode = GetProxyPolicyValue(policies, key::kProxyMode); in ApplyPolicySettings()
134 const base::Value* server = GetProxyPolicyValue(policies, key::kProxyServer); in ApplyPolicySettings()
[all …]
Dproxy_policy_handler.h43 virtual bool CheckPolicySettings(const PolicyMap& policies,
45 virtual void ApplyPolicySettings(const PolicyMap& policies,
49 const base::Value* GetProxyPolicyValue(const PolicyMap& policies,
55 bool CheckProxyModeAndServerMode(const PolicyMap& policies,
/external/chromium_org/chrome/browser/extensions/api/storage/
Dpolicy_value_store_unittest.cc121 policy::PolicyMap policies; in TEST_F() local
123 policies.Set("must", policy::POLICY_LEVEL_MANDATORY, in TEST_F()
125 policies.Set("may", policy::POLICY_LEVEL_RECOMMENDED, in TEST_F()
128 store_->SetCurrentPolicy(policies); in TEST_F()
167 policy::PolicyMap policies; in TEST_F() local
168 policies.Set("aaa", policy::POLICY_LEVEL_MANDATORY, policy::POLICY_SCOPE_USER, in TEST_F()
170 store_->SetCurrentPolicy(policies); in TEST_F()
184 policies.Set("bbb", policy::POLICY_LEVEL_MANDATORY, policy::POLICY_SCOPE_USER, in TEST_F()
186 store_->SetCurrentPolicy(policies); in TEST_F()
202 policies.Set("bbb", policy::POLICY_LEVEL_MANDATORY, policy::POLICY_SCOPE_USER, in TEST_F()
[all …]
/external/chromium_org/chrome/browser/extensions/
Dpolicy_handlers.cc31 const policy::PolicyMap& policies, in CheckPolicySettings() argument
33 return CheckAndGetList(policies, errors, NULL); in CheckPolicySettings()
37 const policy::PolicyMap& policies, in ApplyPolicySettings() argument
41 if (CheckAndGetList(policies, &errors, &list) && list) in ApplyPolicySettings()
50 const policy::PolicyMap& policies, in CheckAndGetList() argument
57 if (!CheckAndGetValue(policies, errors, &value)) in CheckAndGetList()
107 const policy::PolicyMap& policies, in CheckPolicySettings() argument
110 return CheckAndGetValue(policies, errors, &value) && in CheckPolicySettings()
115 const policy::PolicyMap& policies, in ApplyPolicySettings() argument
119 if (CheckAndGetValue(policies, NULL, &value) && in ApplyPolicySettings()
[all …]
Dpolicy_handlers.h29 virtual bool CheckPolicySettings(const policy::PolicyMap& policies,
31 virtual void ApplyPolicySettings(const policy::PolicyMap& policies,
38 bool CheckAndGetList(const policy::PolicyMap& policies,
56 virtual bool CheckPolicySettings(const policy::PolicyMap& policies,
58 virtual void ApplyPolicySettings(const policy::PolicyMap& policies,
80 virtual bool CheckPolicySettings(const policy::PolicyMap& policies,
82 virtual void ApplyPolicySettings(const policy::PolicyMap& policies,
/external/chromium_org/components/policy/resources/
DPRESUBMIT.py19 policies = ( policy
26 return list(itertools.chain(policies, subpolicies))
49 def _CheckPolicyTestCases(input_api, output_api, policies): argument
56 policy_names = frozenset(policy['name'] for policy in policies)
75 def _CheckPolicyHistograms(input_api, output_api, policies): argument
93 for policy in policies:
108 policies = _GetPolicyTemplates(template_path)
109 results.extend(_CheckPolicyTestCases(input_api, output_api, policies))
110 results.extend(_CheckPolicyHistograms(input_api, output_api, policies))
/external/chromium_org/chrome/browser/profiles/
Dincognito_mode_policy_handler.cc24 bool IncognitoModePolicyHandler::CheckPolicySettings(const PolicyMap& policies, in CheckPolicySettings() argument
28 policies.GetValue(key::kIncognitoModeAvailability); in CheckPolicySettings()
48 policies.GetValue(key::kIncognitoEnabled); in CheckPolicySettings()
60 void IncognitoModePolicyHandler::ApplyPolicySettings(const PolicyMap& policies, in ApplyPolicySettings() argument
63 policies.GetValue(key::kIncognitoModeAvailability); in ApplyPolicySettings()
65 policies.GetValue(key::kIncognitoEnabled); in ApplyPolicySettings()
/external/chromium/chrome/browser/policy/
Dfile_based_policy_provider_unittest.cc39 DictionaryValue* policies = new DictionaryValue(); in TEST_F() local
40 policies->SetBoolean(policy::key::kSyncDisabled, true); in TEST_F()
44 EXPECT_CALL(*provider_delegate, Load()).WillOnce(Return(policies)); in TEST_F()
73 DictionaryValue* policies = new DictionaryValue(); in TEST_F() local
74 policies->SetBoolean(policy::key::kSyncDisabled, true); in TEST_F()
75 EXPECT_CALL(*provider_delegate, Load()).WillOnce(Return(policies)); in TEST_F()
/external/chromium_org/chrome/browser/prefs/
Dsynced_pref_change_registrar_browsertest.cc55 void UpdateChromePolicy(const policy::PolicyMap& policies) { in UpdateChromePolicy() argument
56 policy_provider_.UpdateChromePolicy(policies); in UpdateChromePolicy()
196 policy::PolicyMap policies; in IN_PROC_BROWSER_TEST_F() local
197 policies.Set(policy::key::kShowHomeButton, in IN_PROC_BROWSER_TEST_F()
202 UpdateChromePolicy(policies); in IN_PROC_BROWSER_TEST_F()
217 policy::PolicyMap policies; in IN_PROC_BROWSER_TEST_F() local
218 policies.Set(policy::key::kShowHomeButton, in IN_PROC_BROWSER_TEST_F()
223 UpdateChromePolicy(policies); in IN_PROC_BROWSER_TEST_F()

1234567