Chromium Code Reviews| Index: chrome/common/important_file_writer.cc |
| diff --git a/chrome/common/important_file_writer.cc b/chrome/common/important_file_writer.cc |
| index c5e4cf8cd5272dcf34b166499a6afb347d8fffc5..80789b09ecbad0186e3a10fda5d6f9430e846f9a 100644 |
| --- a/chrome/common/important_file_writer.cc |
| +++ b/chrome/common/important_file_writer.cc |
| @@ -50,7 +50,8 @@ class WriteToDiskTask : public Task { |
| return; |
| } |
| - DCHECK_LE(data_.length(), static_cast<size_t>(kint32max)); |
| + // If happens in the wild something really bad is likely to be going on. |
|
Mark Mentovai
2011/11/05 00:49:02
If happens -> if this happens?
Scott Hess - ex-Googler
2011/11/08 18:47:51
Done.
|
| + CHECK_LE(data_.length(), static_cast<size_t>(kint32max)); |
| int bytes_written = base::WritePlatformFile( |
| tmp_file, 0, data_.data(), static_cast<int>(data_.length())); |
| base::FlushPlatformFile(tmp_file); // Ignore return value. |