summaryrefslogtreecommitdiffstats
path: root/tools/gn/function_write_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gn/function_write_file.cc')
-rw-r--r--tools/gn/function_write_file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gn/function_write_file.cc b/tools/gn/function_write_file.cc
index 9d606db..bfdc5a3e 100644
--- a/tools/gn/function_write_file.cc
+++ b/tools/gn/function_write_file.cc
@@ -77,7 +77,7 @@ Value RunWriteFile(Scope* scope,
return Value();
}
int int_size = static_cast<int>(contents_string.size());
- if (file_util::WriteFile(file_path, contents_string.c_str(), int_size)
+ if (base::WriteFile(file_path, contents_string.c_str(), int_size)
!= int_size) {
*err = Err(function->function(), "Unable to write file.",
"I was writing \"" + FilePathToUTF8(file_path) + "\".");