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

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

Issue 47513018: Make the internal storage of policy::Schemas ref counted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-4-new-generate
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_domain_descriptor.h
diff --git a/chrome/browser/policy/policy_domain_descriptor.h b/chrome/browser/policy/policy_domain_descriptor.h
index 629390079f0d3db0938a6165c7904a6a2dee5868..ae92a4868974ebb92d91c6e1a29fe247c8ef40ed 100644
--- a/chrome/browser/policy/policy_domain_descriptor.h
+++ b/chrome/browser/policy/policy_domain_descriptor.h
@@ -33,22 +33,18 @@ class PolicyDomainDescriptor
// Registers the given |component_id| for this domain, and sets its current
// |schema|. This registration overrides any previously set schema for this
// component.
- void RegisterComponent(const std::string& component_id,
- scoped_ptr<SchemaOwner> schema);
+ void RegisterComponent(const std::string& component_id, Schema schema);
// Removes all the policies in |bundle| that don't match this descriptor.
// Policies of domains other than |domain_| are ignored.
void FilterBundle(PolicyBundle* bundle) const;
private:
- typedef std::map<std::string, SchemaOwner*> SchemaOwnerMap;
-
friend class base::RefCountedThreadSafe<PolicyDomainDescriptor>;
~PolicyDomainDescriptor();
PolicyDomain domain_;
- SchemaOwnerMap schema_owner_map_;
SchemaMap schema_map_;
DISALLOW_COPY_AND_ASSIGN(PolicyDomainDescriptor);
« no previous file with comments | « chrome/browser/policy/generate_policy_source_unittest.cc ('k') | chrome/browser/policy/policy_domain_descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698