Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1580)

Unified Diff: content/child/blob_storage/blob_consolidation.cc

Issue 1502503004: Remove kuint64max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint8
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/blob_storage/blob_consolidation.cc
diff --git a/content/child/blob_storage/blob_consolidation.cc b/content/child/blob_storage/blob_consolidation.cc
index 4985059ef5805f68b44cc68bfce3ba9b78a46819..a2b0925d5d1aa44718d5e6f11023dc63968ff033 100644
--- a/content/child/blob_storage/blob_consolidation.cc
+++ b/content/child/blob_storage/blob_consolidation.cc
@@ -4,7 +4,10 @@
#include "content/child/blob_storage/blob_consolidation.h"
+#include <stdint.h>
+
#include <algorithm>
+#include <limits>
#include <string>
using storage::DataElement;
@@ -17,9 +20,8 @@ using ReadStatus = BlobConsolidation::ReadStatus;
BlobConsolidation::ConsolidatedItem::ConsolidatedItem()
: type(DataElement::TYPE_UNKNOWN),
offset(0),
- length(kuint64max),
- expected_modification_time(0) {
-}
+ length(std::numeric_limits<uint64_t>::max()),
+ expected_modification_time(0) {}
BlobConsolidation::ConsolidatedItem::~ConsolidatedItem() {
}

Powered by Google App Engine
This is Rietveld 408576698