| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/policy_domain_descriptor.h" | 5 #include "chrome/browser/policy/policy_domain_descriptor.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/policy/policy_bundle.h" | 10 #include "chrome/browser/policy/policy_bundle.h" |
| 11 #include "chrome/browser/policy/policy_map.h" | 11 #include "chrome/browser/policy/policy_map.h" |
| 12 #include "chrome/common/policy/policy_schema.h" | 12 #include "components/policy/core/common/policy_schema.h" |
| 13 | 13 |
| 14 namespace policy { | 14 namespace policy { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 bool Matches(const PolicySchema* schema, const base::Value& value) { | 18 bool Matches(const PolicySchema* schema, const base::Value& value) { |
| 19 if (!schema) { | 19 if (!schema) { |
| 20 // Schema not found, invalid entry. | 20 // Schema not found, invalid entry. |
| 21 return false; | 21 return false; |
| 22 } | 22 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 map->Erase(policy_name); | 93 map->Erase(policy_name); |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 | 97 |
| 98 PolicyDomainDescriptor::~PolicyDomainDescriptor() { | 98 PolicyDomainDescriptor::~PolicyDomainDescriptor() { |
| 99 STLDeleteValues(&schema_map_); | 99 STLDeleteValues(&schema_map_); |
| 100 } | 100 } |
| 101 | 101 |
| 102 } // namespace policy | 102 } // namespace policy |
| OLD | NEW |