summaryrefslogtreecommitdiffstats
path: root/base/file_util_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r--base/file_util_win.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index d750749..24a4dea 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -904,9 +904,7 @@ bool MemoryMappedFile::MapFileToMemoryInternal() {
// According to msdn, system error codes are only reserved up to 15999.
// http://msdn.microsoft.com/en-us/library/ms681381(v=VS.85).aspx.
UMA_HISTOGRAM_ENUMERATION("MemoryMappedFile.CreateFileMapping",
- std::min(logging::GetLastSystemErrorCode(),
- static_cast<logging::SystemErrorCode>(15999)),
- 16000);
+ logging::GetLastSystemErrorCode(), 16000);
return false;
}
@@ -914,9 +912,7 @@ bool MemoryMappedFile::MapFileToMemoryInternal() {
::MapViewOfFile(file_mapping_, FILE_MAP_READ, 0, 0, length_));
if (!data_) {
UMA_HISTOGRAM_ENUMERATION("MemoryMappedFile.MapViewOfFile",
- std::min(logging::GetLastSystemErrorCode(),
- static_cast<logging::SystemErrorCode>(15999)),
- 16000);
+ logging::GetLastSystemErrorCode(), 16000);
}
return data_ != NULL;
}