Index: tools/generate_dump.cc |
diff --git a/tools/generate_dump.cc b/tools/generate_dump.cc |
index c94aa983f7c76480b45c0938fd79ccccbd1b0367..d936149793dd3419b043bdc75882ece35fa2fb59 100644 |
--- a/tools/generate_dump.cc |
+++ b/tools/generate_dump.cc |
@@ -152,8 +152,8 @@ int GenerateDumpMain(int argc, char* argv[]) { |
FileWriter file_writer; |
if (!file_writer.Open(base::FilePath(options.dump_path), |
- O_WRONLY | O_CREAT | O_TRUNC, |
- 0644)) { |
+ FileWriteMode::kTruncateOrCreate, |
+ true)) { |
return EXIT_FAILURE; |
} |