Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc

Issue 155573003: Add policy management for on-screen keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update recommendation restorer. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/login_profile_policy_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/login_profile_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698