| Index: base/shared_memory_posix.cc
|
| ===================================================================
|
| --- base/shared_memory_posix.cc (revision 30139)
|
| +++ base/shared_memory_posix.cc (working copy)
|
| @@ -203,8 +203,10 @@
|
| return false;
|
| const size_t current_size = stat.st_size;
|
| if (current_size != size) {
|
| - if (ftruncate(fileno(fp), size) != 0)
|
| - return false;
|
| + // 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 (fseeko(fp, size, SEEK_SET) != 0)
|
| return false;
|
| }
|
|
|