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

Side by Side Diff: components/policy/core/common/schema_registry.cc

Issue 78453005: Move PolicySchema and PolicySchemaRegistry to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested class on win 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/policy/core/common/schema_registry.h ('k') | components/policy/core/common/schema_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698