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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 | 544 |
545 if (container.has_login_screen_default_screen_magnifier_type()) { | 545 if (container.has_login_screen_default_screen_magnifier_type()) { |
546 policies->Set( | 546 policies->Set( |
547 key::kDeviceLoginScreenDefaultScreenMagnifierType, | 547 key::kDeviceLoginScreenDefaultScreenMagnifierType, |
548 POLICY_LEVEL_MANDATORY, | 548 POLICY_LEVEL_MANDATORY, |
549 POLICY_SCOPE_MACHINE, | 549 POLICY_SCOPE_MACHINE, |
550 DecodeIntegerValue( | 550 DecodeIntegerValue( |
551 container.login_screen_default_screen_magnifier_type()), | 551 container.login_screen_default_screen_magnifier_type()), |
552 NULL); | 552 NULL); |
553 } | 553 } |
| 554 if (container.has_login_screen_default_virtual_keyboard_enabled()) { |
| 555 policies->Set( |
| 556 key::kDeviceLoginScreenDefaultVirtualKeyboardEnabled, |
| 557 POLICY_LEVEL_MANDATORY, |
| 558 POLICY_SCOPE_MACHINE, |
| 559 base::Value::CreateBooleanValue( |
| 560 container.login_screen_default_virtual_keyboard_enabled()), |
| 561 NULL); |
| 562 } |
554 } | 563 } |
555 } | 564 } |
556 | 565 |
557 void DecodeGenericPolicies(const em::ChromeDeviceSettingsProto& policy, | 566 void DecodeGenericPolicies(const em::ChromeDeviceSettingsProto& policy, |
558 PolicyMap* policies) { | 567 PolicyMap* policies) { |
559 if (policy.has_device_policy_refresh_rate()) { | 568 if (policy.has_device_policy_refresh_rate()) { |
560 const em::DevicePolicyRefreshRateProto& container( | 569 const em::DevicePolicyRefreshRateProto& container( |
561 policy.device_policy_refresh_rate()); | 570 policy.device_policy_refresh_rate()); |
562 if (container.has_device_policy_refresh_rate()) { | 571 if (container.has_device_policy_refresh_rate()) { |
563 policies->Set(key::kDevicePolicyRefreshRate, | 572 policies->Set(key::kDevicePolicyRefreshRate, |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 DecodeLoginPolicies(policy, policies); | 736 DecodeLoginPolicies(policy, policies); |
728 DecodeKioskPolicies(policy, policies, install_attributes); | 737 DecodeKioskPolicies(policy, policies, install_attributes); |
729 DecodeNetworkPolicies(policy, policies, install_attributes); | 738 DecodeNetworkPolicies(policy, policies, install_attributes); |
730 DecodeReportingPolicies(policy, policies); | 739 DecodeReportingPolicies(policy, policies); |
731 DecodeAutoUpdatePolicies(policy, policies); | 740 DecodeAutoUpdatePolicies(policy, policies); |
732 DecodeAccessibilityPolicies(policy, policies); | 741 DecodeAccessibilityPolicies(policy, policies); |
733 DecodeGenericPolicies(policy, policies); | 742 DecodeGenericPolicies(policy, policies); |
734 } | 743 } |
735 | 744 |
736 } // namespace policy | 745 } // namespace policy |
OLD | NEW |