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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc b/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
index d6cf2388f622cf33fcb7234a3986ce20c941eacc..3bc77ada84d748b2e57f02efe20948564a47cd02 100644
--- a/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
+++ b/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
@@ -315,6 +315,16 @@ void DecodeLoginPolicies(const em::ChromeDeviceSettingsProto& policy,
nullptr);
}
}
+
+ if (policy.has_allow_bluetooth()) {
+ const em::AllowBluetoothProto& container(policy.allow_bluetooth());
+ if (container.has_allow_bluetooth()) {
+ policies->Set(key::kDeviceAllowBluetooth, POLICY_LEVEL_MANDATORY,
+ POLICY_SCOPE_MACHINE, POLICY_SOURCE_CLOUD,
+ new base::FundamentalValue(container.allow_bluetooth()),
+ nullptr);
+ }
+ }
}
void DecodeNetworkPolicies(const em::ChromeDeviceSettingsProto& policy,
« 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