Index: net/disk_cache/blockfile/eviction.cc |
diff --git a/net/disk_cache/blockfile/eviction.cc b/net/disk_cache/blockfile/eviction.cc |
index 46eb2d7f70e2a7f96db88fb20d2485b6a86bc314..6e0dcd5a8339ac27fa35fb2d4fa311b732a7d10c 100644 |
--- a/net/disk_cache/blockfile/eviction.cc |
+++ b/net/disk_cache/blockfile/eviction.cc |
@@ -28,6 +28,10 @@ |
#include "net/disk_cache/blockfile/eviction.h" |
+#include <stdint.h> |
+ |
+#include <limits> |
+ |
#include "base/bind.h" |
#include "base/compiler_specific.h" |
#include "base/location.h" |
@@ -408,7 +412,7 @@ void Eviction::OnOpenEntryV2(EntryImpl* entry) { |
EntryStore* info = entry->entry()->Data(); |
DCHECK_EQ(ENTRY_NORMAL, info->state); |
- if (info->reuse_count < kint32max) { |
+ if (info->reuse_count < std::numeric_limits<int32_t>::max()) { |
info->reuse_count++; |
entry->entry()->set_modified(); |
@@ -434,7 +438,7 @@ void Eviction::OnCreateEntryV2(EntryImpl* entry) { |
break; |
}; |
case ENTRY_EVICTED: { |
- if (info->refetch_count < kint32max) |
+ if (info->refetch_count < std::numeric_limits<int32_t>::max()) |
info->refetch_count++; |
if (info->refetch_count > kHighUse && info->reuse_count < kHighUse) { |