Descriptionchromeos: Don't send empty power management policies.
Update PowerPolicyController to not send an empty policy to
powerd when Chrome starts or exits. Empty policies were
originally sent to ensure the system wouldn't be stuck with
an old policy, but they also mean that powerd could briefly
revert to its default settings with undesireable results
when the system first boots or the user logs out (e.g. an
enterprise policy has disabled the lid-closed action, but
powerd reverts to its default settings and shuts down
automatically when the user logs out).
BUG=329930
TBR=benwells@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243566
Patch Set 1 #Patch Set 2 : update PowerPrefs tests #Patch Set 3 : update PowerPolicyTest #Patch Set 4 : don't crash in d'tor if uninitialized #
Total comments: 2
Patch Set 5 : rename getters #Patch Set 6 : throw the rietveld dice again :-( #Messages
Total messages: 13 (0 generated)
|