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

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

Issue 1736293002: Added boolean policy to enable deactivation of bluetooth for managed devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/proto/chrome_device_policy.proto » ('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 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 if (container.has_login_authentication_behavior()) { 308 if (container.has_login_authentication_behavior()) {
309 policies->Set(key::kLoginAuthenticationBehavior, 309 policies->Set(key::kLoginAuthenticationBehavior,
310 POLICY_LEVEL_MANDATORY, 310 POLICY_LEVEL_MANDATORY,
311 POLICY_SCOPE_MACHINE, 311 POLICY_SCOPE_MACHINE,
312 POLICY_SOURCE_CLOUD, 312 POLICY_SOURCE_CLOUD,
313 DecodeIntegerValue( 313 DecodeIntegerValue(
314 container.login_authentication_behavior()).release(), 314 container.login_authentication_behavior()).release(),
315 nullptr); 315 nullptr);
316 } 316 }
317 } 317 }
318
319 if (policy.has_allow_bluetooth()) {
320 const em::AllowBluetoothProto& container(policy.allow_bluetooth());
321 if (container.has_allow_bluetooth()) {
322 policies->Set(key::kDeviceAllowBluetooth, POLICY_LEVEL_MANDATORY,
323 POLICY_SCOPE_MACHINE, POLICY_SOURCE_CLOUD,
324 new base::FundamentalValue(container.allow_bluetooth()),
325 nullptr);
326 }
327 }
318 } 328 }
319 329
320 void DecodeNetworkPolicies(const em::ChromeDeviceSettingsProto& policy, 330 void DecodeNetworkPolicies(const em::ChromeDeviceSettingsProto& policy,
321 PolicyMap* policies) { 331 PolicyMap* policies) {
322 if (policy.has_data_roaming_enabled()) { 332 if (policy.has_data_roaming_enabled()) {
323 const em::DataRoamingEnabledProto& container(policy.data_roaming_enabled()); 333 const em::DataRoamingEnabledProto& container(policy.data_roaming_enabled());
324 if (container.has_data_roaming_enabled()) { 334 if (container.has_data_roaming_enabled()) {
325 policies->Set(key::kDeviceDataRoamingEnabled, 335 policies->Set(key::kDeviceDataRoamingEnabled,
326 POLICY_LEVEL_MANDATORY, 336 POLICY_LEVEL_MANDATORY,
327 POLICY_SCOPE_MACHINE, 337 POLICY_SCOPE_MACHINE,
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 // Decode the various groups of policies. 891 // Decode the various groups of policies.
882 DecodeLoginPolicies(policy, policies); 892 DecodeLoginPolicies(policy, policies);
883 DecodeNetworkPolicies(policy, policies); 893 DecodeNetworkPolicies(policy, policies);
884 DecodeReportingPolicies(policy, policies); 894 DecodeReportingPolicies(policy, policies);
885 DecodeAutoUpdatePolicies(policy, policies); 895 DecodeAutoUpdatePolicies(policy, policies);
886 DecodeAccessibilityPolicies(policy, policies); 896 DecodeAccessibilityPolicies(policy, policies);
887 DecodeGenericPolicies(policy, policies); 897 DecodeGenericPolicies(policy, policies);
888 } 898 }
889 899
890 } // namespace policy 900 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/proto/chrome_device_policy.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698