Chromium Code Reviews| Index: tools/gn/function_process_file_template.cc |
| diff --git a/tools/gn/function_process_file_template.cc b/tools/gn/function_process_file_template.cc |
| index 28e3e4683c6407db0783dcbebb39f723b11fb34d..5f39ded1baa1e8aaf398440a88e63c9f09c9dba3 100644 |
| --- a/tools/gn/function_process_file_template.cc |
| +++ b/tools/gn/function_process_file_template.cc |
| @@ -2,6 +2,7 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +#include "base/stl_util.h" |
| #include "tools/gn/functions.h" |
| #include "tools/gn/parse_tree.h" |
| #include "tools/gn/scope.h" |
| @@ -94,8 +95,7 @@ Value RunProcessFileTemplate(Scope* scope, |
| } |
| auto& types = subst.required_types(); |
| - if (std::find(types.begin(), types.end(), |
| - SUBSTITUTION_SOURCE_TARGET_RELATIVE) != types.end()) { |
| + if (base::ContainsValue(types,SUBSTITUTION_SOURCE_TARGET_RELATIVE) { |
|
brettw
2017/06/15 21:02:30
Space before period.
brettw
2017/06/15 21:02:44
I mean comma, sorry.
Tripta
2017/06/16 11:17:29
Have added a space after comma.
|
| *err = Err(template_arg, "Not a valid substitution type for the function."); |
| return Value(); |
| } |