DescriptionTPMTokenLoader: Report both the disabled and enabled state of the TPM.
Also change from the observer pattern to the simpler callback pattern, as there is only a single notification type (TPM is enabled/disabled).
This simplifies ownership of the observer/receiver especially if multiple threads (typically UI and IO) are involved: A temporary callback with a WeakPtr can be used instead of an observer object that has to be owned by someone.
BUG=413219
Committed: https://crrev.com/a52b2d041ac1f2e2905b0b9e5d222cee5a9ff116
Cr-Commit-Position: refs/heads/master@{#294454}
Patch Set 1 : #
Total comments: 2
Patch Set 2 : Addressed nit. #Messages
Total messages: 12 (4 generated)
|