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

Unified Diff: components/policy/core/common/cloud/cloud_policy_core.h

Issue 762863002: Removed policy::PolicyNamespaceKey. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pass values in ctors Created 6 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: components/policy/core/common/cloud/cloud_policy_core.h
diff --git a/components/policy/core/common/cloud/cloud_policy_core.h b/components/policy/core/common/cloud/cloud_policy_core.h
index 6279dfe0aca0feb739adee63b50f5ee7e1a859e6..c8e6e5987718640fc7a64f52aba25886a23e74ba 100644
--- a/components/policy/core/common/cloud/cloud_policy_core.h
+++ b/components/policy/core/common/cloud/cloud_policy_core.h
@@ -12,7 +12,6 @@
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "base/prefs/pref_member.h"
-#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/policy_export.h"
class PrefService;
@@ -52,7 +51,8 @@ class POLICY_EXPORT CloudPolicyCore {
};
// |task_runner| is the runner for policy refresh tasks.
- CloudPolicyCore(const PolicyNamespaceKey& policy_ns_key,
+ CloudPolicyCore(const std::string& policy_type,
+ const std::string& settings_entity_id,
CloudPolicyStore* store,
const scoped_refptr<base::SequencedTaskRunner>& task_runner);
~CloudPolicyCore();
@@ -101,7 +101,8 @@ class POLICY_EXPORT CloudPolicyCore {
// Updates the refresh scheduler on refresh delay changes.
void UpdateRefreshDelayFromPref();
- PolicyNamespaceKey policy_ns_key_;
+ std::string policy_type_;
+ std::string settings_entity_id_;
CloudPolicyStore* store_;
scoped_refptr<base::SequencedTaskRunner> task_runner_;
scoped_ptr<CloudPolicyClient> client_;
« no previous file with comments | « components/policy/core/common/cloud/cloud_policy_constants.h ('k') | components/policy/core/common/cloud/cloud_policy_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698