| Index: tools/gn/ninja_target_writer.cc
|
| diff --git a/tools/gn/ninja_target_writer.cc b/tools/gn/ninja_target_writer.cc
|
| index 6c5d12b05c020e52bc9f6aaa587363dae4165d82..88001849a2d72376349d5cc57c92f304f7ed757a 100644
|
| --- a/tools/gn/ninja_target_writer.cc
|
| +++ b/tools/gn/ninja_target_writer.cc
|
| @@ -74,9 +74,7 @@ void NinjaTargetWriter::RunAndWriteFile(const Target* target) {
|
| CHECK(0) << "Output type of target not handled.";
|
| }
|
|
|
| - std::string contents = file.str();
|
| - base::WriteFile(ninja_file, contents.c_str(),
|
| - static_cast<int>(contents.size()));
|
| + WriteFileIfChanged(ninja_file, &file);
|
| }
|
|
|
| void NinjaTargetWriter::WriteEscapedSubstitution(SubstitutionType type) {
|
|
|