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

Unified Diff: chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc

Issue 2956633002: Policy implementation for encryptfs to ext4 migration strategy (Closed)
Patch Set: Created 3 years, 6 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/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 6d92f46a9b8ae70289f11ba1fc6116bf25566cd9..39c4da1cbcf3aee6c40d31a0df3e90719ae416a3 100644
--- a/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
+++ b/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
@@ -383,6 +383,17 @@ void DecodeLoginPolicies(const em::ChromeDeviceSettingsProto& policy,
POLICY_SCOPE_MACHINE, POLICY_SOURCE_CLOUD,
std::move(input_methods), nullptr);
}
+
+ if (policy.has_device_ecryptfs_migration_strategy()) {
+ const em::DeviceEcryptfsMigrationStrategyProto& container(
+ policy.device_ecryptfs_migration_strategy());
+ if (container.has_migration_strategy()) {
+ policies->Set(
+ key::kDeviceEcryptfsMigrationStrategy, POLICY_LEVEL_MANDATORY,
+ POLICY_SCOPE_MACHINE, POLICY_SOURCE_CLOUD,
+ DecodeIntegerValue(container.migration_strategy()), nullptr);
+ }
+ }
}
void DecodeNetworkPolicies(const em::ChromeDeviceSettingsProto& policy,
« no previous file with comments | « chrome/browser/chromeos/login/screens/user_selection_screen.cc ('k') | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698