| Index: components/policy/core/common/cloud/user_cloud_policy_store.h
|
| diff --git a/components/policy/core/common/cloud/user_cloud_policy_store.h b/components/policy/core/common/cloud/user_cloud_policy_store.h
|
| index 85cd6dc18956fef0c6047258abb9797e00f2bea3..c3acbc98dc246dfd2163792af328d0ec5c1ad446 100644
|
| --- a/components/policy/core/common/cloud/user_cloud_policy_store.h
|
| +++ b/components/policy/core/common/cloud/user_cloud_policy_store.h
|
| @@ -42,6 +42,9 @@ class POLICY_EXPORT UserCloudPolicyStore : public UserCloudPolicyStoreBase {
|
| const std::string& verification_key,
|
| scoped_refptr<base::SequencedTaskRunner> background_task_runner);
|
|
|
| + // The username from signin for validation of the policy.
|
| + std::string signin_username() const { return signin_username_; }
|
| +
|
| // Sets the username from signin for validation of the policy.
|
| void SetSigninUsername(const std::string& username);
|
|
|
| @@ -56,13 +59,6 @@ class POLICY_EXPORT UserCloudPolicyStore : public UserCloudPolicyStoreBase {
|
| void Load() override;
|
| void Store(const enterprise_management::PolicyFetchResponse& policy) override;
|
|
|
| - // The key used to sign the current policy (empty if there either is no
|
| - // loaded policy yet, or if the policy is unsigned).
|
| - const std::string& policy_key() { return policy_key_; }
|
| -
|
| - protected:
|
| - std::string signin_username_;
|
| -
|
| private:
|
| // Callback invoked when a new policy has been loaded from disk. If
|
| // |validate_in_background| is true, then policy is validated via a background
|
| @@ -90,9 +86,6 @@ class POLICY_EXPORT UserCloudPolicyStore : public UserCloudPolicyStoreBase {
|
| // Callback invoked to store the policy after validation has finished.
|
| void StorePolicyAfterValidation(UserCloudPolicyValidator* validator);
|
|
|
| - // The key used to verify signatures of cached policy.
|
| - std::string policy_key_;
|
| -
|
| // Path to file where we store persisted policy.
|
| base::FilePath policy_path_;
|
|
|
| @@ -102,6 +95,9 @@ class POLICY_EXPORT UserCloudPolicyStore : public UserCloudPolicyStoreBase {
|
| // The hard-coded key used to verify new signing keys.
|
| const std::string verification_key_;
|
|
|
| + // The username from signin for validation of the policy.
|
| + std::string signin_username_;
|
| +
|
| // WeakPtrFactory used to create callbacks for validating and storing policy.
|
| base::WeakPtrFactory<UserCloudPolicyStore> weak_factory_;
|
|
|
|
|