| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/policy/device_policy_decoder_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/device_policy_decoder_chromeos.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 NULL); | 175 NULL); |
| 176 } | 176 } |
| 177 if (container.has_enable_auto_login_bailout()) { | 177 if (container.has_enable_auto_login_bailout()) { |
| 178 policies->Set(key::kDeviceLocalAccountAutoLoginBailoutEnabled, | 178 policies->Set(key::kDeviceLocalAccountAutoLoginBailoutEnabled, |
| 179 POLICY_LEVEL_MANDATORY, | 179 POLICY_LEVEL_MANDATORY, |
| 180 POLICY_SCOPE_MACHINE, | 180 POLICY_SCOPE_MACHINE, |
| 181 Value::CreateBooleanValue( | 181 Value::CreateBooleanValue( |
| 182 container.enable_auto_login_bailout()), | 182 container.enable_auto_login_bailout()), |
| 183 NULL); | 183 NULL); |
| 184 } | 184 } |
| 185 if (container.has_prompt_for_network_when_offline()) { |
| 186 policies->Set(key::kDeviceLocalAccountPromptForNetworkWhenOffline, |
| 187 POLICY_LEVEL_MANDATORY, |
| 188 POLICY_SCOPE_MACHINE, |
| 189 Value::CreateBooleanValue( |
| 190 container.prompt_for_network_when_offline()), |
| 191 NULL); |
| 192 } |
| 185 } | 193 } |
| 186 | 194 |
| 187 if (policy.has_supervised_users_settings()) { | 195 if (policy.has_supervised_users_settings()) { |
| 188 const em::SupervisedUsersSettingsProto& container = | 196 const em::SupervisedUsersSettingsProto& container = |
| 189 policy.supervised_users_settings(); | 197 policy.supervised_users_settings(); |
| 190 if (container.has_supervised_users_enabled()) { | 198 if (container.has_supervised_users_enabled()) { |
| 191 Value* value = Value::CreateBooleanValue( | 199 Value* value = Value::CreateBooleanValue( |
| 192 container.supervised_users_enabled()); | 200 container.supervised_users_enabled()); |
| 193 policies->Set(key::kSupervisedUsersEnabled, | 201 policies->Set(key::kSupervisedUsersEnabled, |
| 194 POLICY_LEVEL_MANDATORY, | 202 POLICY_LEVEL_MANDATORY, |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 DecodeLoginPolicies(policy, policies); | 713 DecodeLoginPolicies(policy, policies); |
| 706 DecodeKioskPolicies(policy, policies, install_attributes); | 714 DecodeKioskPolicies(policy, policies, install_attributes); |
| 707 DecodeNetworkPolicies(policy, policies, install_attributes); | 715 DecodeNetworkPolicies(policy, policies, install_attributes); |
| 708 DecodeReportingPolicies(policy, policies); | 716 DecodeReportingPolicies(policy, policies); |
| 709 DecodeAutoUpdatePolicies(policy, policies); | 717 DecodeAutoUpdatePolicies(policy, policies); |
| 710 DecodeAccessibilityPolicies(policy, policies); | 718 DecodeAccessibilityPolicies(policy, policies); |
| 711 DecodeGenericPolicies(policy, policies); | 719 DecodeGenericPolicies(policy, policies); |
| 712 } | 720 } |
| 713 | 721 |
| 714 } // namespace policy | 722 } // namespace policy |
| OLD | NEW |