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 "components/policy/core/common/schema.h" | 5 #include "components/policy/core/common/schema.h" |
6 | 6 |
| 7 #include <limits.h> |
7 #include <stddef.h> | 8 #include <stddef.h> |
8 | 9 |
9 #include <algorithm> | 10 #include <algorithm> |
10 #include <climits> | 11 #include <climits> |
11 #include <map> | 12 #include <map> |
12 #include <utility> | 13 #include <utility> |
13 | 14 |
14 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 return false; | 1103 return false; |
1103 } else { | 1104 } else { |
1104 int index = rnode->string_pattern_restriction.pattern_index; | 1105 int index = rnode->string_pattern_restriction.pattern_index; |
1105 DCHECK(index == rnode->string_pattern_restriction.pattern_index_backup); | 1106 DCHECK(index == rnode->string_pattern_restriction.pattern_index_backup); |
1106 re2::RE2* regex = storage_->CompileRegex(*storage_->string_enums(index)); | 1107 re2::RE2* regex = storage_->CompileRegex(*storage_->string_enums(index)); |
1107 return re2::RE2::PartialMatch(str, *regex); | 1108 return re2::RE2::PartialMatch(str, *regex); |
1108 } | 1109 } |
1109 } | 1110 } |
1110 | 1111 |
1111 } // namespace policy | 1112 } // namespace policy |
OLD | NEW |