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

Unified Diff: content/renderer/dom_storage/dom_storage_cached_area.cc

Issue 1499423004: Remove kint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint9
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
« no previous file with comments | « content/renderer/dom_storage/dom_storage_cached_area.h ('k') | content/test/fileapi_test_file_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/dom_storage/dom_storage_cached_area.cc
diff --git a/content/renderer/dom_storage/dom_storage_cached_area.cc b/content/renderer/dom_storage/dom_storage_cached_area.cc
index a01d3c6f7fb3c1c19b8ef6a2b4a24ee31b46a1c2..23f3d35428eb3351624f52a9142c5214f5b85ca6 100644
--- a/content/renderer/dom_storage/dom_storage_cached_area.cc
+++ b/content/renderer/dom_storage/dom_storage_cached_area.cc
@@ -4,7 +4,8 @@
#include "content/renderer/dom_storage/dom_storage_cached_area.h"
-#include "base/basictypes.h"
+#include <limits>
+
#include "base/metrics/histogram.h"
#include "base/time/time.h"
#include "content/common/dom_storage/dom_storage_map.h"
@@ -12,7 +13,7 @@
namespace content {
-DOMStorageCachedArea::DOMStorageCachedArea(int64 namespace_id,
+DOMStorageCachedArea::DOMStorageCachedArea(int64_t namespace_id,
const GURL& origin,
DOMStorageProxy* proxy)
: ignore_all_mutations_(false),
@@ -134,7 +135,7 @@ void DOMStorageCachedArea::ApplyMutation(
// We turn off quota checking here to accomodate the over budget
// allowance that's provided in the browser process.
base::NullableString16 unused;
- map_->set_quota(kint32max);
+ map_->set_quota(std::numeric_limits<int32_t>::max());
map_->SetItem(key.string(), new_value.string(), &unused);
map_->set_quota(kPerStorageAreaQuota);
}
« no previous file with comments | « content/renderer/dom_storage/dom_storage_cached_area.h ('k') | content/test/fileapi_test_file_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698