Index: base/files/memory_mapped_file.cc |
diff --git a/base/files/memory_mapped_file.cc b/base/files/memory_mapped_file.cc |
index 891fcffc4cb434b74729657b7981a400729f2e61..1a22bb03df02ede73606bacd402ed52e953a3f16 100644 |
--- a/base/files/memory_mapped_file.cc |
+++ b/base/files/memory_mapped_file.cc |
@@ -16,10 +16,11 @@ const MemoryMappedFile::Region MemoryMappedFile::Region::kWholeFile( |
MemoryMappedFile::Region::Region(base::LinkerInitialized) : offset(0), size(0) { |
} |
+MemoryMappedFile::Region::Region() : offset(0), size(0) { |
Lei Zhang
2015/05/28 18:55:53
Perhaps this one should be (-1, -1) to indicate in
agrieve
2015/05/28 19:13:24
sgtm (done)
|
+} |
+ |
MemoryMappedFile::Region::Region(int64 offset, int64 size) |
: offset(offset), size(size) { |
- DCHECK_GE(offset, 0); |
Lei Zhang
2015/05/28 18:55:53
why remove the DCHECKs?
agrieve
2015/05/28 19:13:24
There are times (like when going through jni) wher
Lei Zhang
2015/05/29 21:14:09
Assuming we stick with -1 to indicate invalidness,
agrieve
2015/06/01 14:50:05
This wouldn't allow you to convert an invalid regi
|
- DCHECK_GT(size, 0); |
} |
bool MemoryMappedFile::Region::operator==( |