Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Unified Diff: chrome/common/important_file_writer.cc

Issue 8477018: Pull back some CHECK calls which were removed. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: comment tweak Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/mac/cfbundle_blocker.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bd02f878901c099a64b5f066f11efacd70afc6c8 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 this happens in the wild something really bad is going on.
+ 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.
« no previous file with comments | « no previous file | chrome/common/mac/cfbundle_blocker.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698