OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/common/trace_event_args_whitelist.h" | 5 #include "chrome/common/trace_event_args_whitelist.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/strings/pattern.h" | 8 #include "base/strings/pattern.h" |
9 #include "base/strings/string_tokenizer.h" | 9 #include "base/strings/string_tokenizer.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } | 82 } |
83 return true; | 83 return true; |
84 } | 84 } |
85 } | 85 } |
86 } | 86 } |
87 | 87 |
88 return false; | 88 return false; |
89 } | 89 } |
90 | 90 |
91 bool IsMetadataWhitelisted(const std::string& metadata_name) { | 91 bool IsMetadataWhitelisted(const std::string& metadata_name) { |
92 for (auto key : kMetadataWhitelist) { | 92 for (auto* key : kMetadataWhitelist) { |
93 if (base::MatchPattern(metadata_name, key)) { | 93 if (base::MatchPattern(metadata_name, key)) { |
94 return true; | 94 return true; |
95 } | 95 } |
96 } | 96 } |
97 return false; | 97 return false; |
98 } | 98 } |
OLD | NEW |