Commit 1048043a authored by Oleh Lamzin's avatar Oleh Lamzin Committed by Commit Bot

Parse DeviceUsbPowerShare proto in device decoder

Parse DeviceUsbPowerShareProto to DeviceUsbPowerShareEnabled policy in
device policy decoder.

BUG=b:130014793
TEST=manual

Change-Id: Id9c10aa65cd461e21d5abf5ce7ccdeadc58322d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1587603Reviewed-by: default avatarMaksim Ivanov <emaxx@chromium.org>
Commit-Queue: Oleh Lamzin <lamzin@google.com>
Cr-Commit-Position: refs/heads/master@{#655009}
parent 94a7a2a2
......@@ -1330,6 +1330,17 @@ void DecodeGenericPolicies(const em::ChromeDeviceSettingsProto& policy,
nullptr);
}
}
if (policy.has_device_usb_power_share()) {
const em::DeviceUsbPowerShareProto& container(
policy.device_usb_power_share());
if (container.has_enabled()) {
policies->Set(key::kDeviceUsbPowerShareEnabled, POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_MACHINE, POLICY_SOURCE_CLOUD,
std::make_unique<base::Value>(container.enabled()),
nullptr);
}
}
}
} // namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment