Index: tools/gn/filesystem_utils.cc |
diff --git a/tools/gn/filesystem_utils.cc b/tools/gn/filesystem_utils.cc |
index 6152ae04656a5b40a6adc58f1391da28bcb74849..f922968586f74b16f1f8dcaa026f46d6de824c83 100644 |
--- a/tools/gn/filesystem_utils.cc |
+++ b/tools/gn/filesystem_utils.cc |
@@ -754,6 +754,11 @@ bool WriteFileIfChanged(const base::FilePath& file_path, |
if (ContentsEqual(file_path, data)) |
return true; |
+ return WriteFile(file_path, data, err); |
+} |
+ |
+bool WriteFile(const base::FilePath& file_path, const std::string& data, |
+ Err* err) { |
// Create the directory if necessary. |
if (!base::CreateDirectory(file_path.DirName())) { |
if (err) { |