| 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..47de6407f1aeb897ff75122574dbf0ee9ee7aaf8 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)) {
|
| *err = Err(template_arg, "Not a valid substitution type for the function.");
|
| return Value();
|
| }
|
|
|