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

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

Issue 1307643003: IWYU for base/memory/scoped_vector.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 months 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
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 "components/policy/core/common/schema.h" 5 #include "components/policy/core/common/schema.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <climits> 8 #include <climits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/containers/scoped_ptr_map.h" 13 #include "base/containers/scoped_ptr_map.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/scoped_vector.h"
17 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
18 #include "components/json_schema/json_schema_constants.h" 17 #include "components/json_schema/json_schema_constants.h"
19 #include "components/json_schema/json_schema_validator.h" 18 #include "components/json_schema/json_schema_validator.h"
20 #include "components/policy/core/common/schema_internal.h" 19 #include "components/policy/core/common/schema_internal.h"
21 #include "third_party/re2/re2/re2.h" 20 #include "third_party/re2/re2/re2.h"
22 21
23 namespace schema = json_schema_constants; 22 namespace schema = json_schema_constants;
24 23
25 namespace policy { 24 namespace policy {
26 25
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 return false; 1100 return false;
1102 } else { 1101 } else {
1103 int index = rnode->string_pattern_restriction.pattern_index; 1102 int index = rnode->string_pattern_restriction.pattern_index;
1104 DCHECK(index == rnode->string_pattern_restriction.pattern_index_backup); 1103 DCHECK(index == rnode->string_pattern_restriction.pattern_index_backup);
1105 re2::RE2* regex = storage_->CompileRegex(*storage_->string_enums(index)); 1104 re2::RE2* regex = storage_->CompileRegex(*storage_->string_enums(index));
1106 return re2::RE2::PartialMatch(str, *regex); 1105 return re2::RE2::PartialMatch(str, *regex);
1107 } 1106 }
1108 } 1107 }
1109 1108
1110 } // namespace policy 1109 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698