blob: 9cf2b494e8f06fc8c49b4a98e6dd50ebb8d0f749 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/policy/schema_registry_service.h"
#include "components/policy/core/common/policy_namespace.h"
#include "components/policy/core/common/schema.h"
#include "components/policy/core/common/schema_registry.h"
namespace policy {
SchemaRegistryService::SchemaRegistryService(
scoped_ptr<SchemaRegistry> registry,
const Schema& chrome_schema,
CombinedSchemaRegistry* global_registry)
: registry_(registry.Pass()) {
if (chrome_schema.valid()) {
registry_->RegisterComponent(PolicyNamespace(POLICY_DOMAIN_CHROME, ""),
chrome_schema);
}
registry_->SetReady(POLICY_DOMAIN_CHROME);
if (global_registry)
global_registry->Track(registry_.get());
}
SchemaRegistryService::~SchemaRegistryService() {}
} // namespace policy
|