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

Issue 2625873004: Delete and try to recreate localstorage database on invalid schema version. (Closed)

Created:
3 years, 11 months ago by Marijn Kruisselbrink
Modified:
3 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delete and try to recreate localstorage database on invalid schema version. BUG=586194 Review-Url: https://codereview.chromium.org/2625873004 Cr-Commit-Position: refs/heads/master@{#444147} Committed: https://chromium.googlesource.com/chromium/src/+/3cf31809c9d342cfa7c1ae2844bdacf342dd39b9

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix windows build #

Total comments: 2

Patch Set 3 : use an associated interface for the leveldb database #

Patch Set 4 : add unit test for Destroy #

Total comments: 2

Patch Set 5 : 80 cols, and fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -86 lines) Patch
M components/leveldb/leveldb_service_impl.h View 1 2 1 chunk +11 lines, -7 lines 0 comments Download
M components/leveldb/leveldb_service_impl.cc View 1 2 5 chunks +27 lines, -13 lines 0 comments Download
M components/leveldb/leveldb_service_unittest.cc View 1 2 3 4 10 chunks +106 lines, -21 lines 0 comments Download
M components/leveldb/public/interfaces/leveldb.mojom View 1 2 1 chunk +13 lines, -3 lines 0 comments Download
M components/leveldb/remote_iterator_unittest.cc View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/dom_storage/local_storage_context_mojo.h View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M content/browser/dom_storage/local_storage_context_mojo.cc View 1 2 8 chunks +100 lines, -33 lines 0 comments Download
M content/browser/dom_storage/local_storage_context_mojo_unittest.cc View 1 2 4 chunks +58 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (32 generated)
Marijn Kruisselbrink
Not sure how to best ensure that the database is closed before an attempt is ...
3 years, 11 months ago (2017-01-11 19:10:58 UTC) #7
jam
https://codereview.chromium.org/2625873004/diff/20001/content/browser/dom_storage/local_storage_context_mojo.cc File content/browser/dom_storage/local_storage_context_mojo.cc (right): https://codereview.chromium.org/2625873004/diff/20001/content/browser/dom_storage/local_storage_context_mojo.cc#newcode332 content/browser/dom_storage/local_storage_context_mojo.cc:332: // TODO(mek): Somehow ensure closing is processed before Destroy ...
3 years, 11 months ago (2017-01-12 17:24:42 UTC) #14
Marijn Kruisselbrink
https://codereview.chromium.org/2625873004/diff/20001/content/browser/dom_storage/local_storage_context_mojo.cc File content/browser/dom_storage/local_storage_context_mojo.cc (right): https://codereview.chromium.org/2625873004/diff/20001/content/browser/dom_storage/local_storage_context_mojo.cc#newcode332 content/browser/dom_storage/local_storage_context_mojo.cc:332: // TODO(mek): Somehow ensure closing is processed before Destroy ...
3 years, 11 months ago (2017-01-13 19:25:11 UTC) #18
jam
lgtm https://codereview.chromium.org/2625873004/diff/20001/content/browser/dom_storage/local_storage_context_mojo.cc File content/browser/dom_storage/local_storage_context_mojo.cc (right): https://codereview.chromium.org/2625873004/diff/20001/content/browser/dom_storage/local_storage_context_mojo.cc#newcode332 content/browser/dom_storage/local_storage_context_mojo.cc:332: // TODO(mek): Somehow ensure closing is processed before ...
3 years, 11 months ago (2017-01-14 00:17:55 UTC) #22
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/2625873004/100001
3 years, 11 months ago (2017-01-17 20:47:58 UTC) #29
commit-bot: I haz the power
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 11 months ago (2017-01-17 21:08:51 UTC) #34
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/2625873004/100001
3 years, 11 months ago (2017-01-17 21:14:13 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:100001) as https://chromium.googlesource.com/chromium/src/+/3cf31809c9d342cfa7c1ae2844bdacf342dd39b9
3 years, 11 months ago (2017-01-17 21:21:38 UTC) #39
Wez
3 years, 10 months ago (2017-02-07 22:28:16 UTC) #41
Message was sent while issue was closed.
Hallo mbarbella@chromium.org!
Due to a depot_tools patch which mistakenly removed the OWNERS check for
non-source files (see crbug.com/684270), the following files landed in this CL
and need a retrospective review from you:
	components/leveldb/public/interfaces/leveldb.mojom
Thanks,
Wez

Powered by Google App Engine
This is Rietveld 408576698