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

Unified Diff: chrome/browser/policy/policy_service_impl.cc

Issue 15061007: Added a PolicyDomainDescriptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 months 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
« no previous file with comments | « chrome/browser/policy/policy_service_impl.h ('k') | chrome/browser/policy/policy_service_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_service_impl.cc
diff --git a/chrome/browser/policy/policy_service_impl.cc b/chrome/browser/policy/policy_service_impl.cc
index c872d1b37e5ce1a6dc72b697e8becf1a156cf194..2cf3734a93b7e0d93b3d610d32749882f1bc2a70 100644
--- a/chrome/browser/policy/policy_service_impl.cc
+++ b/chrome/browser/policy/policy_service_impl.cc
@@ -10,6 +10,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
#include "base/stl_util.h"
+#include "chrome/browser/policy/policy_domain_descriptor.h"
#include "chrome/browser/policy/policy_map.h"
namespace policy {
@@ -75,10 +76,9 @@ void PolicyServiceImpl::RemoveObserver(PolicyDomain domain,
}
void PolicyServiceImpl::RegisterPolicyDomain(
- PolicyDomain domain,
- const std::set<std::string>& components) {
+ scoped_refptr<const PolicyDomainDescriptor> descriptor) {
for (Iterator it = providers_.begin(); it != providers_.end(); ++it)
- (*it)->RegisterPolicyDomain(domain, components);
+ (*it)->RegisterPolicyDomain(descriptor);
}
const PolicyMap& PolicyServiceImpl::GetPolicies(
« no previous file with comments | « chrome/browser/policy/policy_service_impl.h ('k') | chrome/browser/policy/policy_service_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698