| Index: chrome/browser/chromeos/settings/install_attributes.h
|
| diff --git a/chrome/browser/chromeos/settings/install_attributes.h b/chrome/browser/chromeos/settings/install_attributes.h
|
| index 53615dfc33021b62d0a2c05eed62ff2e928afd9f..618c718d1044121980aa33f14bcb0e9cefda5450 100644
|
| --- a/chrome/browser/chromeos/settings/install_attributes.h
|
| +++ b/chrome/browser/chromeos/settings/install_attributes.h
|
| @@ -70,6 +70,13 @@ class InstallAttributes {
|
| // ReadAttributesIfReady().
|
| void ReadImmutableAttributes(const base::Closure& callback);
|
|
|
| + // Updates the firmware management parameters from TPM, storing the devmode
|
| + // flag according to |block_devmode|. Invokes |callback| when done. Must be
|
| + // called before LockDevice is done. Used to update TPM on enrollment.
|
| + void SetBlockDevmodeInTpm(
|
| + bool block_devmode,
|
| + const CryptohomeClient::ProtobufMethodCallback& callback);
|
| +
|
| // Locks the device into |device_mode|. Depending on |device_mode|, a
|
| // specific subset of |domain|, |realm| and |device_id| must be set. Can also
|
| // be called after the lock has already been taken, in which case it checks
|
| @@ -111,6 +118,9 @@ class InstallAttributes {
|
| // device id was not stored in the lockbox (prior to R19).
|
| std::string GetDeviceId() const { return registration_device_id_; }
|
|
|
| + // Return whether TPM is locked.
|
| + bool IsDeviceLocked() const { return device_locked_; }
|
| +
|
| protected:
|
| // True if install attributes have been read successfully. False if read
|
| // failed or no read attempt was made.
|
|
|