Index: base/shared_memory_posix.cc |
=================================================================== |
--- base/shared_memory_posix.cc (revision 33125) |
+++ base/shared_memory_posix.cc (working copy) |
@@ -203,10 +203,8 @@ |
return false; |
const size_t current_size = stat.st_size; |
if (current_size != size) { |
- // TODO(hawk): When finished with bug 16371, revert this CHECK() to: |
- // if (ftruncate(fileno(fp), size) != 0) |
- // return false; |
- CHECK(!ftruncate(fileno(fp), size)); |
+ if (ftruncate(fileno(fp), size) != 0) |
+ return false; |
if (fseeko(fp, size, SEEK_SET) != 0) |
return false; |
} |