OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_map.h" | 5 #include "chrome/browser/policy/policy_map.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util.h" |
10 | 10 |
11 namespace policy { | 11 namespace policy { |
12 | 12 |
13 PolicyMap::PolicyMap() { | 13 PolicyMap::PolicyMap() { |
14 } | 14 } |
15 | 15 |
16 PolicyMap::~PolicyMap() { | 16 PolicyMap::~PolicyMap() { |
17 Clear(); | 17 Clear(); |
18 } | 18 } |
19 | 19 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 STLDeleteValues(&map_); | 64 STLDeleteValues(&map_); |
65 } | 65 } |
66 | 66 |
67 // static | 67 // static |
68 bool PolicyMap::MapEntryEquals(const PolicyMap::PolicyMapType::value_type& a, | 68 bool PolicyMap::MapEntryEquals(const PolicyMap::PolicyMapType::value_type& a, |
69 const PolicyMap::PolicyMapType::value_type& b) { | 69 const PolicyMap::PolicyMapType::value_type& b) { |
70 return a.first == b.first && Value::Equals(a.second, b.second); | 70 return a.first == b.first && Value::Equals(a.second, b.second); |
71 } | 71 } |
72 | 72 |
73 } // namespace policy | 73 } // namespace policy |
OLD | NEW |