From d6363edd3ac317ff67a03a6e56cad64f70c23404 Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Fri, 20 Oct 2017 16:29:16 +0300 Subject: [PATCH] Update 018-dom_storage_map.patch --- patches/018-dom_storage_map.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patches/018-dom_storage_map.patch b/patches/018-dom_storage_map.patch index 7603f765..2aeca79d 100644 --- a/patches/018-dom_storage_map.patch +++ b/patches/018-dom_storage_map.patch @@ -1,17 +1,17 @@ diff --git a/content/common/dom_storage/dom_storage_map.cc b/content/common/dom_storage/dom_storage_map.cc -index 71368bd..047054f 100644 +index 5ac8bd57dc7f..0adccd0e9cf4 100644 --- a/content/common/dom_storage/dom_storage_map.cc +++ b/content/common/dom_storage/dom_storage_map.cc -@@ -64,10 +64,12 @@ bool DOMStorageMap::SetItem( +@@ -180,10 +180,12 @@ bool DOMStorageMap::SetItemInternal(MapType* map_type, size_t new_item_size = size_of_item(key, value); size_t new_bytes_used = bytes_used_ - old_item_size + new_item_size; -+#if 0 ++#if 0 // Disable localStorage size limit for Electron. // Only check quota if the size is increasing, this allows // shrinking changes to pre-existing files that are over budget. if (new_item_size > old_item_size && new_bytes_used > quota_) return false; +#endif - values_[key] = base::NullableString16(value, false); + (*map_type)[key] = value; ResetKeyIterator();