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

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

Issue 1544283002: Clean up header files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 <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
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
OLDNEW
« no previous file with comments | « components/nacl/renderer/plugin/srpc_client.cc ('k') | components/safe_browsing_db/prefix_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698