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/logging.h" | 9 #include "base/logging.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 POLICY_LEVEL_MANDATORY, | 138 POLICY_LEVEL_MANDATORY, |
139 POLICY_SCOPE_MACHINE, | 139 POLICY_SCOPE_MACHINE, |
140 Value::CreateStringValue(container.auto_login_id())); | 140 Value::CreateStringValue(container.auto_login_id())); |
141 } | 141 } |
142 if (container.has_auto_login_delay()) { | 142 if (container.has_auto_login_delay()) { |
143 policies->Set(key::kDeviceLocalAccountAutoLoginDelay, | 143 policies->Set(key::kDeviceLocalAccountAutoLoginDelay, |
144 POLICY_LEVEL_MANDATORY, | 144 POLICY_LEVEL_MANDATORY, |
145 POLICY_SCOPE_MACHINE, | 145 POLICY_SCOPE_MACHINE, |
146 DecodeIntegerValue(container.auto_login_delay())); | 146 DecodeIntegerValue(container.auto_login_delay())); |
147 } | 147 } |
| 148 if (container.has_enable_auto_login_bailout()) { |
| 149 policies->Set(key::kDeviceLocalAccountAutoLoginBailoutEnabled, |
| 150 POLICY_LEVEL_MANDATORY, |
| 151 POLICY_SCOPE_MACHINE, |
| 152 Value::CreateBooleanValue( |
| 153 container.enable_auto_login_bailout())); |
| 154 } |
148 } | 155 } |
149 } | 156 } |
150 | 157 |
151 void DecodeKioskPolicies(const em::ChromeDeviceSettingsProto& policy, | 158 void DecodeKioskPolicies(const em::ChromeDeviceSettingsProto& policy, |
152 PolicyMap* policies, | 159 PolicyMap* policies, |
153 EnterpriseInstallAttributes* install_attributes) { | 160 EnterpriseInstallAttributes* install_attributes) { |
154 // No policies if this is not KIOSK. | 161 // No policies if this is not KIOSK. |
155 if (install_attributes->GetMode() != DEVICE_MODE_KIOSK) | 162 if (install_attributes->GetMode() != DEVICE_MODE_KIOSK) |
156 return; | 163 return; |
157 | 164 |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 // Decode the various groups of policies. | 500 // Decode the various groups of policies. |
494 DecodeLoginPolicies(policy, policies); | 501 DecodeLoginPolicies(policy, policies); |
495 DecodeKioskPolicies(policy, policies, install_attributes); | 502 DecodeKioskPolicies(policy, policies, install_attributes); |
496 DecodeNetworkPolicies(policy, policies, install_attributes); | 503 DecodeNetworkPolicies(policy, policies, install_attributes); |
497 DecodeReportingPolicies(policy, policies); | 504 DecodeReportingPolicies(policy, policies); |
498 DecodeAutoUpdatePolicies(policy, policies); | 505 DecodeAutoUpdatePolicies(policy, policies); |
499 DecodeGenericPolicies(policy, policies); | 506 DecodeGenericPolicies(policy, policies); |
500 } | 507 } |
501 | 508 |
502 } // namespace policy | 509 } // namespace policy |
OLD | NEW |