summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 18:19:06 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 18:19:06 +0000
commit1fa05e65f12f3e9b132ac71e2493b573d7c154de (patch)
tree6e38e6abb598ef2a5cdb52e9c8ef078ed549b5e4
parentfc82ccf02a4c4ba88ee343d6f1eb385f9a5297ee (diff)
downloadchromium_src-1fa05e65f12f3e9b132ac71e2493b573d7c154de.zip
chromium_src-1fa05e65f12f3e9b132ac71e2493b573d7c154de.tar.gz
chromium_src-1fa05e65f12f3e9b132ac71e2493b573d7c154de.tar.bz2
Remove call to std::min since this check is already done in
histograms.h. Review URL: http://codereview.chromium.org/3769006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62762 0039d316-1c4b-4281-b951-d872f2087c98
-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;
}