| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/policy/schema_registry.h" | 5 #include "components/policy/core/common/schema_registry.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace policy { | 9 namespace policy { |
| 10 | 10 |
| 11 SchemaRegistry::Observer::~Observer() {} | 11 SchemaRegistry::Observer::~Observer() {} |
| 12 | 12 |
| 13 SchemaRegistry::SchemaRegistry() : schema_map_(new SchemaMap) { | 13 SchemaRegistry::SchemaRegistry() : schema_map_(new SchemaMap) { |
| 14 for (int i = 0; i < POLICY_DOMAIN_SIZE; ++i) | 14 for (int i = 0; i < POLICY_DOMAIN_SIZE; ++i) |
| 15 domains_ready_[i] = false; | 15 domains_ready_[i] = false; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 comp_it != reg_component_map.end(); ++comp_it) { | 166 comp_it != reg_component_map.end(); ++comp_it) { |
| 167 map[domain_it->first][comp_it->first] = comp_it->second; | 167 map[domain_it->first][comp_it->first] = comp_it->second; |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 } | 170 } |
| 171 schema_map_ = new SchemaMap(map); | 171 schema_map_ = new SchemaMap(map); |
| 172 Notify(has_new_schemas); | 172 Notify(has_new_schemas); |
| 173 } | 173 } |
| 174 | 174 |
| 175 } // namespace policy | 175 } // namespace policy |
| OLD | NEW |