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

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

Issue 31273002: Generate the Chrome policy schema at compile time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « chrome/browser/policy/DEPS ('k') | chrome/browser/policy/generate_policy_source_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/browser_policy_connector.cc
diff --git a/chrome/browser/policy/browser_policy_connector.cc b/chrome/browser/policy/browser_policy_connector.cc
index b79342d9a5fc22739333e467e8a26daf9e0378c2..4a3e5e5ab425f0f8c4de4bec234a5b673aa481c3 100644
--- a/chrome/browser/policy/browser_policy_connector.cc
+++ b/chrome/browser/policy/browser_policy_connector.cc
@@ -39,6 +39,7 @@
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/pref_names.h"
#include "components/policy/core/common/policy_pref_names.h"
+#include "components/policy/core/common/schema.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_client.h"
#include "google_apis/gaia/gaia_auth_util.h"
@@ -424,6 +425,7 @@ scoped_ptr<PolicyService> BrowserPolicyConnector::CreatePolicyService(
scoped_ptr<PolicyService> service(new PolicyServiceImpl(providers));
scoped_refptr<PolicyDomainDescriptor> descriptor = new PolicyDomainDescriptor(
POLICY_DOMAIN_CHROME);
+ descriptor->RegisterComponent("", SchemaOwner::Wrap(GetChromeSchemaData()));
service->RegisterPolicyDomain(descriptor);
return service.Pass();
}
« no previous file with comments | « chrome/browser/policy/DEPS ('k') | chrome/browser/policy/generate_policy_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698