Chromad: Fetch device policy before locking the device.
Authpolicyd cannot store policy into Session Manager before device
is locked. However locking the device and failure of getting policy
after that did lead to inconsistent state of the device.
To prevent that authpolicyd now gets policy before locking the device,
caches it and stores it after locking the device.
CQ-DEPEND=CL:771710
BUG=chromium:684679
TEST=manual
Change-Id: Ie6973903b623d7dfdd87aac2c1cbb5fa51132cdd
Reviewed-on: https://chromium-review.googlesource.com/771556
Commit-Queue: Roman Sorokin <[email protected]>
Reviewed-by: Maksim Ivanov <[email protected]>
Reviewed-by: Lutz Justen <[email protected]>
Reviewed-by: Xiyuan Xia <[email protected]>
Cr-Commit-Position: refs/heads/master@{#520089}
diff --git a/chromeos/BUILD.gn b/chromeos/BUILD.gn
index 470b645..2e79426 100644
--- a/chromeos/BUILD.gn
+++ b/chromeos/BUILD.gn
@@ -630,6 +630,7 @@
":cryptohome_proto",
":power_manager_proto",
":test_support",
+ ":test_support_without_gmock",
"//base/test:run_all_unittests",
"//base/test:test_support",
"//components/onc",
@@ -684,6 +685,7 @@
"disks/disk_mount_manager_unittest.cc",
"disks/suspend_unmount_manager_unittest.cc",
"geolocation/simple_geolocation_unittest.cc",
+ "login/auth/authpolicy_login_helper_unittest.cc",
"login/auth/key_unittest.cc",
"login/login_state_unittest.cc",
"network/auto_connect_handler_unittest.cc",