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

Unified Diff: chrome/browser/policy/policy_loader_mac.h

Issue 56623005: Policy providers all get a SchemaRegistry to work with. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-9-purge-with-callback
Patch Set: rebase 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/policy_loader_mac.h
diff --git a/chrome/browser/policy/policy_loader_mac.h b/chrome/browser/policy/policy_loader_mac.h
index 68da9e4142c4574acd29d24b7193711f7c7f045d..b87989240ea08c00a996c0ec49babb398d4dae5a 100644
--- a/chrome/browser/policy/policy_loader_mac.h
+++ b/chrome/browser/policy/policy_loader_mac.h
@@ -13,6 +13,7 @@
#include "base/files/file_path_watcher.h"
#include "base/memory/ref_counted.h"
#include "chrome/browser/policy/async_policy_loader.h"
+#include "components/policy/core/common/policy_namespace.h"
class MacPreferences;
@@ -23,7 +24,7 @@ class Value;
namespace policy {
-class PolicyDomainDescriptor;
+class PolicyBundle;
class PolicyMap;
class Schema;
struct PolicyDefinitionList;
@@ -53,17 +54,17 @@ class PolicyLoaderMac : public AsyncPolicyLoader {
// Callback for the FilePathWatcher.
void OnFileUpdated(const base::FilePath& path, bool error);
- // Loads policies for the components described in |descriptor|, which belong
- // to the domain |domain_name|, and stores them in the |bundle|.
+ // Loads policies for the components described in the current schema_map()
+ // which belong to the domain |domain_name|, and stores them in the |bundle|.
void LoadPolicyForDomain(
- scoped_refptr<const PolicyDomainDescriptor> descriptor,
+ PolicyDomain domain,
const std::string& domain_name,
PolicyBundle* bundle);
// Loads the policies described in |schema| from the bundle identified by
// |bundle_id_string|, and stores them in |policy|.
void LoadPolicyForComponent(const std::string& bundle_id_string,
- Schema schema,
+ const Schema& schema,
PolicyMap* policy);
// List of recognized policies.
« no previous file with comments | « chrome/browser/policy/policy_domain_descriptor_unittest.cc ('k') | chrome/browser/policy/policy_loader_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698