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

Issue 2748023008: Future-proof data format used for LocalStorage. (Closed)

Created:
3 years, 9 months ago by Marijn Kruisselbrink
Modified:
3 years, 9 months ago
Reviewers:
michaeln
CC:
chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Future-proof data format used for LocalStorage. To enable future changes to the way data is stored in localstorage without requiring a full migration of all existing data (for example adding compression, or simply storing 8-bit only strings more efficiently), add a tag to each encoded string to indicate the data format used. BUG=640707 Review-Url: https://codereview.chromium.org/2748023008 Cr-Commit-Position: refs/heads/master@{#458614} Committed: https://chromium.googlesource.com/chromium/src/+/f8d3cf5cfc015e0cbffc2a1fa65b6b96f85fe353

Patch Set 1 #

Total comments: 4

Patch Set 2 : no CHECK, just silently ignore broken data for now #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -3 lines) Patch
M content/renderer/dom_storage/local_storage_cached_area.cc View 1 1 chunk +21 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
Marijn Kruisselbrink
3 years, 9 months ago (2017-03-16 23:02:35 UTC) #7
michaeln
https://codereview.chromium.org/2748023008/diff/1/content/renderer/dom_storage/local_storage_cached_area.cc File content/renderer/dom_storage/local_storage_cached_area.cc (right): https://codereview.chromium.org/2748023008/diff/1/content/renderer/dom_storage/local_storage_cached_area.cc#newcode33 content/renderer/dom_storage/local_storage_cached_area.cc:33: CHECK_EQ(input[0], static_cast<uint8_t>(StorageFormat::UTF16)); Not sure we should crash the renderer ...
3 years, 9 months ago (2017-03-18 01:00:30 UTC) #8
Marijn Kruisselbrink
https://codereview.chromium.org/2748023008/diff/1/content/renderer/dom_storage/local_storage_cached_area.cc File content/renderer/dom_storage/local_storage_cached_area.cc (right): https://codereview.chromium.org/2748023008/diff/1/content/renderer/dom_storage/local_storage_cached_area.cc#newcode33 content/renderer/dom_storage/local_storage_cached_area.cc:33: CHECK_EQ(input[0], static_cast<uint8_t>(StorageFormat::UTF16)); On 2017/03/18 at 01:00:30, michaeln wrote: > ...
3 years, 9 months ago (2017-03-21 23:16:29 UTC) #13
michaeln
On 2017/03/21 23:16:29, Marijn Kruisselbrink wrote: > https://codereview.chromium.org/2748023008/diff/1/content/renderer/dom_storage/local_storage_cached_area.cc > File content/renderer/dom_storage/local_storage_cached_area.cc (right): > > https://codereview.chromium.org/2748023008/diff/1/content/renderer/dom_storage/local_storage_cached_area.cc#newcode33 ...
3 years, 9 months ago (2017-03-22 00:35:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2748023008/20001
3 years, 9 months ago (2017-03-22 00:42:41 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 01:45:37 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f8d3cf5cfc015e0cbffc2a1fa65b...

Powered by Google App Engine
This is Rietveld 408576698