Load DeviceLocalAccount policy and DeviceSettings immediately on restore after Chrome crash.
UserCloudPolicyManagerChromeOS and UserCloudPolicyManager are loading user policy immediately
after Chrome crash as profile is created synchronously so that the Profile initialization
never sees unmanaged prefs.
However, it was not true for device local accounts, such as public sessions and ARC Kiosk session,
that means having Profile with uninitialized prefs, that particularly leads to crash/data loss
for ARC kiosk.
This change forces policies for these accounts to also be loaded immediately on crash with blocking
call to D-Bus, similar to loading policies for users.
note: While this change fixes the described issue, the better way is to get rid of synchronous profile
creation, but still ensure that policy is loaded before end of profile creation. See crbug.com/160522
BUG=
679810
BUG=
694546
TEST=Ran tryjobs, start and restore after crash for: ARC Kiosk, Public Session, User Session.
Review-Url:
https://codereview.chromium.org/2714493002
Cr-Commit-Position: refs/heads/master@{#453621}
Committed:
https://chromium.googlesource.com/chromium/src/+/afc9d60e96d31a11f756d5c56c2be54a28130960