Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1243)

Unified Diff: chrome/browser/policy/cloud/user_cloud_policy_store.h

Issue 49783006: policy: Remove SigninManager from UserCloudPolicyStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/cloud/user_cloud_policy_store.h
diff --git a/chrome/browser/policy/cloud/user_cloud_policy_store.h b/chrome/browser/policy/cloud/user_cloud_policy_store.h
index b1fcdbe5f9cc31e189ff9b2cbfbbcf67dce15610..c0265197376c0831de4d1a595fc25fe95e4d049c 100644
--- a/chrome/browser/policy/cloud/user_cloud_policy_store.h
+++ b/chrome/browser/policy/cloud/user_cloud_policy_store.h
@@ -39,6 +39,9 @@ class UserCloudPolicyStore : public UserCloudPolicyStoreBase {
Profile* profile,
scoped_refptr<base::SequencedTaskRunner> background_task_runner);
+ // Sets the username from signin for validation of the policy.
+ void SetSigninUsername(const std::string& username);
+
// Loads policy immediately on the current thread. Virtual for mocks.
virtual void LoadImmediately();
@@ -51,6 +54,9 @@ class UserCloudPolicyStore : public UserCloudPolicyStoreBase {
virtual void Store(
const enterprise_management::PolicyFetchResponse& policy) OVERRIDE;
+ 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

Powered by Google App Engine
This is Rietveld 408576698