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

Unified Diff: chrome/browser/chromeos/settings/device_settings_provider.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: Renamed policy, added missing stuff Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/settings/device_settings_provider.cc
diff --git a/chrome/browser/chromeos/settings/device_settings_provider.cc b/chrome/browser/chromeos/settings/device_settings_provider.cc
index cb2c5fcaac7ba9e3f3f66f60f48e9012a06ac99e..91c7e9c51175e9edf2469ef496cb687380d5e38a 100644
--- a/chrome/browser/chromeos/settings/device_settings_provider.cc
+++ b/chrome/browser/chromeos/settings/device_settings_provider.cc
@@ -63,6 +63,7 @@ const char* const kKnownSettings[] = {
kDeviceDisabled,
kDeviceDisabledMessage,
kDeviceOwner,
+ kAllowBluetooth,
kDisplayRotationDefault,
kExtensionCacheSize,
kHeartbeatEnabled,
@@ -444,6 +445,11 @@ void DecodeGenericPolicies(
kDisplayRotationDefault,
policy.display_rotation_default().display_rotation_default());
}
+
+ new_values_cache->SetBoolean(
+ kAllowBluetooth, policy.has_allow_bluetooth() &&
+ policy.allow_bluetooth().has_allow_bluetooth() &&
+ policy.allow_bluetooth().allow_bluetooth());
}
void DecodeLogUploadPolicies(const em::ChromeDeviceSettingsProto& policy,

Powered by Google App Engine
This is Rietveld 408576698